Package net.jqwik.api.arbitraries
Interface CharacterArbitrary
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.jqwik.api.Arbitrary
Arbitrary.ArbitraryFacade
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description CharacterArbitraryall()Allow all unicode chars to show up in generated values.CharacterArbitraryalpha()Allow all alpha chars to show up in generated strings.CharacterArbitraryascii()Allow all ascii chars to show up in generated values.default CharacterArbitrarydigit()Deprecated.Use numeric() instead.CharacterArbitrarynumeric()Allow all numeric chars to show up in generated values.CharacterArbitraryrange(char min, char max)Allow all chars withinmin(included) andmax(included) to show up in generated values.CharacterArbitrarywhitespace()Allow all whitespace chars to show up in generated values.CharacterArbitrarywith(char... allowedChars)Allow all chars inallowedCharsshow up in generated values.CharacterArbitrarywith(java.lang.CharSequence allowedChars)Allow all chars inallowedCharsshow up in generated values.-
Methods inherited from interface net.jqwik.api.Arbitrary
allValues, array, asGeneric, collect, dontShrink, edgeCases, edgeCases, edgeCases, exhaustive, exhaustive, filter, fixGenSize, flatMap, forEachValue, generator, generator, generatorWithEmbeddedEdgeCases, ignoreException, injectDuplicates, injectNull, iterator, list, map, optional, optional, sample, sampleStream, set, stream, tuple1, tuple2, tuple3, tuple4, tuple5, withoutEdgeCases
-
-
-
-
Method Detail
-
all
CharacterArbitrary all()
Allow all unicode chars to show up in generated values.Resets previous settings.
- Returns:
- new instance of arbitrary
-
with
@API(status=MAINTAINED, since="1.1.3") CharacterArbitrary with(char... allowedChars)Allow all chars inallowedCharsshow up in generated values.Adds to all already allowed chars.
- Parameters:
allowedChars- chars allowed- Returns:
- new instance of arbitrary
-
with
@API(status=MAINTAINED, since="1.2.1") CharacterArbitrary with(java.lang.CharSequence allowedChars)Allow all chars inallowedCharsshow up in generated values.Adds to all already allowed chars.
- Parameters:
allowedChars- as String or other CharSequence- Returns:
- new instance of arbitrary
-
range
@API(status=MAINTAINED, since="1.1.3") CharacterArbitrary range(char min, char max)Allow all chars withinmin(included) andmax(included) to show up in generated values.Adds to all already allowed chars.
- Parameters:
min- min char valuemax- max char value- Returns:
- new instance of arbitrary
-
ascii
CharacterArbitrary ascii()
Allow all ascii chars to show up in generated values.Adds to all already allowed chars.
- Returns:
- new instance of arbitrary
-
digit
@Deprecated default CharacterArbitrary digit()
Deprecated.Use numeric() instead. Will be removed in 1.7.0.Allow all numeric chars (digits) to show up in generated values.Adds to all already allowed chars.
- Returns:
- 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.
- Returns:
- 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.
- Returns:
- 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.
- Returns:
- new instance of arbitrary
-
-