Package net.jqwik.api
Klasse Arbitraries.ArbitrariesFacade
java.lang.Object
net.jqwik.api.Arbitraries.ArbitrariesFacade
- Umschließende Klasse:
Arbitraries
-
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungabstract BigDecimalArbitrary
abstract BigIntegerArbitrary
abstract ByteArbitrary
bytes()
abstract CharacterArbitrary
chars()
abstract <T> Arbitrary
<T> defaultFor
(Class<T> type, Class<?>[] typeParameters) defaultFor
(TypeUsage typeUsage, Function<? super TypeUsage, ? extends Arbitrary<T>> noDefaultResolver) abstract DoubleArbitrary
doubles()
abstract FloatArbitrary
floats()
abstract <T> TypeArbitrary
<T> frequency
(List<? extends Tuple.Tuple2<Integer, T>> frequencies) frequencyOf
(List<? extends Tuple.Tuple2<Integer, ? extends Arbitrary<T>>> frequencies) fromGenerator
(IntFunction<? extends RandomGenerator<T>> generatorSupplier) abstract IntegerArbitrary
integers()
just
(T value) abstract LongArbitrary
longs()
abstract <K extends @Nullable Object,
V extends @Nullable Object>
MapArbitrary<K, V> of
(char[] chars) of
(Collection<? extends T> values) oneOf
(Collection<? extends Arbitrary<? extends T>> all) recursive
(Supplier<? extends Arbitrary<T>> base, Function<? super Arbitrary<T>, ? extends Arbitrary<T>> recur, int minDepth, int maxDepth) abstract <M extends @Nullable Object>
ActionSequenceArbitrary<M> abstract ShortArbitrary
shorts()
abstract StringArbitrary
strings()
abstract <T> TraverseArbitrary
<T> traverse
(Class<T> targetType, TraverseArbitrary.Traverser traverser)
-
Konstruktordetails
-
ArbitrariesFacade
public ArbitrariesFacade()
-
-
Methodendetails
-
oneOf
public abstract <T extends @Nullable Object> Arbitrary<T> oneOf(Collection<? extends Arbitrary<? extends T>> all) -
sequences
public abstract <M extends @Nullable Object> ActionSequenceArbitrary<M> sequences(Arbitrary<? extends Action<M>> actionArbitrary) -
frequencyOf
-
just
-
integers
-
longs
-
bigIntegers
-
floats
-
bigDecimals
-
doubles
-
bytes
-
shorts
-
strings
-
chars
-
defaultFor
-
defaultFor
-
lazy
-
forType
-
maps
public abstract <K extends @Nullable Object,V extends @Nullable Object> MapArbitrary<K,V> maps(Arbitrary<K> keysArbitrary, Arbitrary<V> valuesArbitrary) -
entries
-
recursive
-
lazyOf
-
traverse
public abstract <T> TraverseArbitrary<T> traverse(Class<T> targetType, TraverseArbitrary.Traverser traverser) -
of
-
of
-
create
-
shuffle
-
fromGenerator
public abstract <T extends @Nullable Object> Arbitrary<T> fromGenerator(IntFunction<? extends RandomGenerator<T>> generatorSupplier) -
frequency
public abstract <T extends @Nullable Object> Arbitrary<T> frequency(List<? extends Tuple.Tuple2<Integer, T>> frequencies)
-