Package net.jqwik.api.arbitraries
Interface CharacterArbitrary
@API(status=MAINTAINED,
since="1.0")
public interface CharacterArbitrary
extends Arbitrary<Character>
Fluent interface to configure the generation of Character and char values.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.jqwik.api.Arbitrary
Arbitrary.ArbitraryFacade
-
Method Summary
Modifier and TypeMethodDescriptionall()
Allow all unicode chars to show up in generated values.alpha()
Allow all alpha chars to show up in generated strings.ascii()
Allow all ascii chars to show up in generated values.numeric()
Allow all numeric chars to show up in generated values.range
(char min, char max) Allow all chars withinmin
(included) andmax
(included) to show up in generated values.Allow all whitespace chars to show up in generated values.with
(char... allowedChars) Allow all chars inallowedChars
show up in generated values.with
(CharSequence allowedChars) Allow all chars inallowedChars
show up in generated values.Methods inherited from interface net.jqwik.api.Arbitrary
allValues, array, asGeneric, collect, dontShrink, edgeCases, edgeCases, edgeCases, exhaustive, exhaustive, filter, filter, fixGenSize, flatMap, forEachValue, generator, generator, generatorWithEmbeddedEdgeCases, ignoreException, ignoreExceptions, injectDuplicates, injectNull, isGeneratorMemoizable, iterator, list, map, optional, optional, sample, sampleStream, set, stream, tuple1, tuple2, tuple3, tuple4, tuple5, withoutEdgeCases
-
Method Details
-
all
CharacterArbitrary all()Allow all unicode chars to show up in generated values.Resets previous settings.
- Returns:
- new instance of arbitrary
-
with
Allow all chars inallowedChars
show up in generated values.Adds to all already allowed chars.
- Parameters:
allowedChars
- chars allowed- Returns:
- new instance of arbitrary
-
with
Allow all chars inallowedChars
show up in generated values.Adds to all already allowed chars.
- Parameters:
allowedChars
- as String or other CharSequence- Returns:
- new instance of arbitrary
-
range
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
-
numeric
Allow all numeric chars to show up in generated values.Adds to all already allowed chars.
- Returns:
- new instance of arbitrary
-
whitespace
Allow all whitespace chars to show up in generated values.Adds to all already allowed chars.
- Returns:
- new instance of arbitrary
-
alpha
Allow all alpha chars to show up in generated strings.Adds to all already allowed chars.
- Returns:
- new instance of arbitrary
-