Package net.jqwik.api.arbitraries
Schnittstelle CharacterArbitrary
@API(status=MAINTAINED,
since="1.0")
public interface CharacterArbitrary
extends Arbitrary<Character>
Fluent interface to configure the generation of Character and char values.
-
Verschachtelte Klassen - Übersicht
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen net.jqwik.api.Arbitrary
Arbitrary.ArbitraryFacade
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungall()
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.Von Schnittstelle geerbte Methoden net.jqwik.api.Arbitrary
allValues, array, asGeneric, collect, dontShrink, edgeCases, edgeCases, edgeCases, exhaustive, exhaustive, filter, filter, fixGenSize, flatMap, forEachValue, generator, generator, generatorWithEmbeddedEdgeCases, ignoreException, ignoreException, ignoreExceptions, ignoreExceptions, injectDuplicates, injectNull, isGeneratorMemoizable, iterator, list, map, optional, optional, sample, sampleStream, set, stream, tuple1, tuple2, tuple3, tuple4, tuple5, withoutEdgeCases
-
Methodendetails
-
all
CharacterArbitrary all()Allow all unicode chars to show up in generated values.Resets previous settings.
- Gibt zurück:
- new instance of arbitrary
-
with
Allow all chars inallowedChars
show up in generated values.Adds to all already allowed chars.
- Parameter:
allowedChars
- chars allowed- Gibt zurück:
- new instance of arbitrary
-
with
Allow all chars inallowedChars
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
Allow all chars withinmin
(included) andmax
(included) to show up in generated values.Adds to all already allowed chars.
- Parameter:
min
- min char valuemax
- max char value- Gibt zurück:
- new instance of arbitrary
-
ascii
CharacterArbitrary 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
Allow all numeric chars to show up in generated values.Adds to all already allowed chars.
- Gibt zurück:
- new instance of arbitrary
-
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
Allow all alpha chars to show up in generated strings.Adds to all already allowed chars.
- Gibt zurück:
- new instance of arbitrary
-