@API(status=INTERNAL)
public abstract static class Arbitraries.ArbitrariesFacade
extends java.lang.Object
Constructor and Description |
---|
ArbitrariesFacade() |
Modifier and Type | Method and Description |
---|---|
abstract BigDecimalArbitrary |
bigDecimals() |
abstract BigIntegerArbitrary |
bigIntegers() |
abstract ByteArbitrary |
bytes() |
abstract CharacterArbitrary |
chars() |
abstract <T> Arbitrary<T> |
create(java.util.function.Supplier<T> supplier) |
abstract <T> Arbitrary<T> |
defaultFor(java.lang.Class<T> type,
java.lang.Class<?>[] typeParameters) |
abstract <T> Arbitrary<T> |
defaultFor(TypeUsage typeUsage,
java.util.function.Function<TypeUsage,Arbitrary<java.lang.Object>> noDefaultResolver) |
abstract DoubleArbitrary |
doubles() |
abstract <K,V> Arbitrary<java.util.Map.Entry<K,V>> |
entries(Arbitrary<K> keysArbitrary,
Arbitrary<V> valuesArbitrary) |
abstract FloatArbitrary |
floats() |
abstract <T> TypeArbitrary<T> |
forType(java.lang.Class<T> targetType) |
abstract <T> Arbitrary<T> |
frequency(java.util.List<Tuple.Tuple2<java.lang.Integer,T>> frequencies) |
abstract <T> Arbitrary<T> |
frequencyOf(java.util.List<Tuple.Tuple2<java.lang.Integer,Arbitrary<T>>> frequencies) |
abstract <T> Arbitrary<T> |
fromGenerator(java.util.function.IntFunction<RandomGenerator<T>> generatorSupplier) |
abstract IntegerArbitrary |
integers() |
abstract <T> Arbitrary<T> |
just(T value) |
abstract <T> Arbitrary<T> |
lazy(java.util.function.Supplier<Arbitrary<T>> arbitrarySupplier) |
abstract <T> Arbitrary<T> |
lazyOf(java.util.List<java.util.function.Supplier<Arbitrary<T>>> suppliers) |
abstract LongArbitrary |
longs() |
abstract <K,V> MapArbitrary<K,V> |
maps(Arbitrary<K> keysArbitrary,
Arbitrary<V> valuesArbitrary) |
abstract Arbitrary<java.lang.Character> |
of(char[] chars) |
abstract <T> Arbitrary<T> |
of(java.util.Collection<T> values) |
abstract <T> Arbitrary<T> |
oneOf(java.util.Collection<Arbitrary<? extends T>> all) |
abstract <T> Arbitrary<T> |
recursive(java.util.function.Supplier<Arbitrary<T>> base,
java.util.function.Function<Arbitrary<T>,Arbitrary<T>> recur,
int minDepth,
int maxDepth) |
abstract <M> ActionSequenceArbitrary<M> |
sequences(Arbitrary<? extends Action<M>> actionArbitrary) |
abstract ShortArbitrary |
shorts() |
abstract <T> Arbitrary<java.util.List<T>> |
shuffle(java.util.List<T> values) |
abstract StringArbitrary |
strings() |
abstract <T> TraverseArbitrary<T> |
traverse(java.lang.Class<T> targetType,
TraverseArbitrary.Traverser traverser) |
public abstract <M> ActionSequenceArbitrary<M> sequences(Arbitrary<? extends Action<M>> actionArbitrary)
public abstract <T> Arbitrary<T> frequencyOf(java.util.List<Tuple.Tuple2<java.lang.Integer,Arbitrary<T>>> frequencies)
public abstract <T> Arbitrary<T> just(T value)
public abstract IntegerArbitrary integers()
public abstract LongArbitrary longs()
public abstract BigIntegerArbitrary bigIntegers()
public abstract FloatArbitrary floats()
public abstract BigDecimalArbitrary bigDecimals()
public abstract DoubleArbitrary doubles()
public abstract ByteArbitrary bytes()
public abstract ShortArbitrary shorts()
public abstract StringArbitrary strings()
public abstract CharacterArbitrary chars()
public abstract <T> Arbitrary<T> defaultFor(java.lang.Class<T> type, java.lang.Class<?>[] typeParameters)
public abstract <T> Arbitrary<T> defaultFor(TypeUsage typeUsage, java.util.function.Function<TypeUsage,Arbitrary<java.lang.Object>> noDefaultResolver)
public abstract <T> Arbitrary<T> lazy(java.util.function.Supplier<Arbitrary<T>> arbitrarySupplier)
public abstract <T> TypeArbitrary<T> forType(java.lang.Class<T> targetType)
public abstract <K,V> MapArbitrary<K,V> maps(Arbitrary<K> keysArbitrary, Arbitrary<V> valuesArbitrary)
public abstract <K,V> Arbitrary<java.util.Map.Entry<K,V>> entries(Arbitrary<K> keysArbitrary, Arbitrary<V> valuesArbitrary)
public abstract <T> Arbitrary<T> recursive(java.util.function.Supplier<Arbitrary<T>> base, java.util.function.Function<Arbitrary<T>,Arbitrary<T>> recur, int minDepth, int maxDepth)
public abstract <T> Arbitrary<T> lazyOf(java.util.List<java.util.function.Supplier<Arbitrary<T>>> suppliers)
public abstract <T> TraverseArbitrary<T> traverse(java.lang.Class<T> targetType, TraverseArbitrary.Traverser traverser)
public abstract Arbitrary<java.lang.Character> of(char[] chars)
public abstract <T> Arbitrary<T> of(java.util.Collection<T> values)
public abstract <T> Arbitrary<T> create(java.util.function.Supplier<T> supplier)
public abstract <T> Arbitrary<java.util.List<T>> shuffle(java.util.List<T> values)
public abstract <T> Arbitrary<T> fromGenerator(java.util.function.IntFunction<RandomGenerator<T>> generatorSupplier)
public abstract <T> Arbitrary<T> frequency(java.util.List<Tuple.Tuple2<java.lang.Integer,T>> frequencies)