@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> |
defaultFor(java.lang.Class<T> type,
java.lang.Class<?>[] typeParameters) |
abstract <T> Arbitrary<T> |
defaultFor(TypeUsage typeUsage) |
abstract DoubleArbitrary |
doubles() |
abstract <T> EdgeCases<T> |
edgeCasesChoose(char[] validChars) |
abstract <T> EdgeCases<T> |
edgeCasesChoose(java.util.List<T> values) |
abstract <K,V> Arbitrary<java.util.Map.Entry<K,V>> |
entries(Arbitrary<K> keysArbitrary,
Arbitrary<V> valuesArbitrary) |
abstract java.util.Optional<ExhaustiveGenerator<java.lang.Character>> |
exhaustiveChoose(char[] values,
long maxNumberOfSamples) |
abstract <T> java.util.Optional<ExhaustiveGenerator<T>> |
exhaustiveChoose(java.util.List<T> values,
long maxNumberOfSamples) |
abstract <T> java.util.Optional<ExhaustiveGenerator<T>> |
exhaustiveCreate(java.util.function.Supplier<T> supplier,
long maxNumberOfSamples) |
abstract <T> java.util.Optional<ExhaustiveGenerator<java.util.List<T>>> |
exhaustiveShuffle(java.util.List<T> values,
long maxNumberOfSamples) |
abstract FloatArbitrary |
floats() |
abstract <T> TypeArbitrary<T> |
forType(java.lang.Class<T> targetType) |
abstract <T> Arbitrary<T> |
frequencyOf(java.util.List<Tuple.Tuple2<java.lang.Integer,Arbitrary<T>>> frequencies) |
abstract IntegerArbitrary |
integers() |
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 <T> Arbitrary<T> |
oneOf(java.util.List<Arbitrary<T>> all) |
abstract RandomGenerator<java.lang.Character> |
randomChoose(char[] values) |
abstract <T> RandomGenerator<T> |
randomChoose(java.util.List<T> values) |
abstract <T> RandomGenerator<T> |
randomFrequency(java.util.List<Tuple.Tuple2<java.lang.Integer,T>> frequencies) |
abstract <T> RandomGenerator<T> |
randomSamples(T[] samples) |
abstract <T> RandomGenerator<java.util.List<T>> |
randomShuffle(java.util.List<T> values) |
abstract <T> Arbitrary<T> |
recursive(java.util.function.Supplier<Arbitrary<T>> base,
java.util.function.Function<Arbitrary<T>,Arbitrary<T>> recur,
int depth) |
abstract <M> ActionSequenceArbitrary<M> |
sequences(Arbitrary<? extends Action<M>> actionArbitrary) |
abstract ShortArbitrary |
shorts() |
abstract StringArbitrary |
strings() |
public abstract <T> EdgeCases<T> edgeCasesChoose(java.util.List<T> values)
public abstract <T> EdgeCases<T> edgeCasesChoose(char[] validChars)
public abstract <T> java.util.Optional<ExhaustiveGenerator<T>> exhaustiveChoose(java.util.List<T> values, long maxNumberOfSamples)
public abstract <T> java.util.Optional<ExhaustiveGenerator<T>> exhaustiveCreate(java.util.function.Supplier<T> supplier, long maxNumberOfSamples)
public abstract java.util.Optional<ExhaustiveGenerator<java.lang.Character>> exhaustiveChoose(char[] values, long maxNumberOfSamples)
public abstract <T> java.util.Optional<ExhaustiveGenerator<java.util.List<T>>> exhaustiveShuffle(java.util.List<T> values, long maxNumberOfSamples)
public abstract <T> RandomGenerator<T> randomChoose(java.util.List<T> values)
public abstract RandomGenerator<java.lang.Character> randomChoose(char[] values)
public abstract <T> RandomGenerator<T> randomFrequency(java.util.List<Tuple.Tuple2<java.lang.Integer,T>> frequencies)
public abstract <T> RandomGenerator<T> randomSamples(T[] samples)
public abstract <T> RandomGenerator<java.util.List<T>> randomShuffle(java.util.List<T> values)
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 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> 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 depth)