Schnittstelle CharacterArbitrary

Alle Superschnittstellen:
Arbitrary<Character>

@API(status=MAINTAINED, since="1.0") public interface CharacterArbitrary extends Arbitrary<Character>
Fluent interface to configure the generation of Character and char values.
  • Methodendetails

    • all

      Allow all unicode chars to show up in generated values.

      Resets previous settings.

      Gibt zurück:
      new instance of arbitrary
    • with

      @API(status=MAINTAINED, since="1.1.3") CharacterArbitrary with(char... allowedChars)
      Allow all chars in allowedChars show up in generated values.

      Adds to all already allowed chars.

      Parameter:
      allowedChars - chars allowed
      Gibt zurück:
      new instance of arbitrary
    • with

      @API(status=MAINTAINED, since="1.2.1") CharacterArbitrary with(CharSequence allowedChars)
      Allow all chars in allowedChars show up in generated values.

      Adds to all already allowed chars.

      Parameter:
      allowedChars - as String or other CharSequence
      Gibt zurück:
      new instance of arbitrary
    • range

      @API(status=MAINTAINED, since="1.1.3") CharacterArbitrary range(char min, char max)
      Allow all chars within min (included) and max (included) to show up in generated values.

      Adds to all already allowed chars.

      Parameter:
      min - min char value
      max - max char value
      Gibt zurück:
      new instance of arbitrary
    • ascii

      Allow all ascii chars to show up in generated values.

      Adds to all already allowed chars.

      Gibt zurück:
      new instance of arbitrary
    • numeric

      @API(status=MAINTAINED, since="1.5.3") CharacterArbitrary numeric()
      Allow all numeric chars to show up in generated values.

      Adds to all already allowed chars.

      Gibt zurück:
      new instance of arbitrary
    • whitespace

      @API(status=MAINTAINED, since="1.1.3") CharacterArbitrary whitespace()
      Allow all whitespace chars to show up in generated values.

      Adds to all already allowed chars.

      Gibt zurück:
      new instance of arbitrary
    • alpha

      @API(status=MAINTAINED, since="1.5.3") CharacterArbitrary alpha()
      Allow all alpha chars to show up in generated strings.

      Adds to all already allowed chars.

      Gibt zurück:
      new instance of arbitrary