Arbitrary.ArbitraryFacade
Modifier and Type | Method and Description |
---|---|
CharacterArbitrary |
all()
Allow all unicode chars to show up in generated values.
|
CharacterArbitrary |
ascii()
Allow all ascii chars to show up in generated values.
|
CharacterArbitrary |
digit()
Allow all numeric chars (digits) to show up in generated values.
|
CharacterArbitrary |
range(char min,
char max)
Allow all chars within
min (included) and max (included) to show up in generated values. |
CharacterArbitrary |
whitespace()
Allow all whitespace chars to show up in generated values.
|
CharacterArbitrary |
with(char... allowedChars)
Allow all chars in
allowedChars show up in generated values. |
CharacterArbitrary |
with(java.lang.CharSequence allowedChars)
Allow all chars in
allowedChars show up in generated values. |
allValues, array, collect, exhaustive, exhaustive, filter, fixGenSize, flatMap, forEachValue, generator, injectNull, iterator, list, map, optional, set, stream, unique, withSamples
CharacterArbitrary all()
@API(status=MAINTAINED, since="1.1.3") CharacterArbitrary with(char... allowedChars)
allowedChars
show up in generated values.
Adds to all already allowed chars.@API(status=MAINTAINED, since="1.2.1") CharacterArbitrary with(java.lang.CharSequence allowedChars)
allowedChars
show up in generated values.
Adds to all already allowed chars.@API(status=MAINTAINED, since="1.1.3") CharacterArbitrary range(char min, char max)
min
(included) and max
(included) to show up in generated values.
Adds to all already allowed chars.CharacterArbitrary ascii()
CharacterArbitrary digit()
@API(status=MAINTAINED, since="1.1.3") CharacterArbitrary whitespace()