public interface Shrinkable<T> extends java.lang.Comparable<Shrinkable<T>>
Modifier and Type | Method and Description |
---|---|
default int |
compareTo(Shrinkable<T> other) |
ShrinkingDistance |
distance() |
default Shrinkable<T> |
filter(java.util.function.Predicate<T> filter) |
default <U> Shrinkable<U> |
flatMap(java.util.function.Function<T,Arbitrary<U>> flatMapper,
int tries,
long randomSeed) |
default boolean |
isSmallerThan(Shrinkable<T> other) |
default <U> Shrinkable<U> |
map(java.util.function.Function<T,U> mapper) |
ShrinkingSequence<T> |
shrink(Falsifier<T> falsifier) |
static <T> Shrinkable<T> |
unshrinkable(T value) |
T |
value() |
static <T> Shrinkable<T> unshrinkable(T value)
T value()
ShrinkingSequence<T> shrink(Falsifier<T> falsifier)
ShrinkingDistance distance()
default <U> Shrinkable<U> map(java.util.function.Function<T,U> mapper)
default Shrinkable<T> filter(java.util.function.Predicate<T> filter)
default int compareTo(Shrinkable<T> other)
compareTo
in interface java.lang.Comparable<Shrinkable<T>>
default boolean isSmallerThan(Shrinkable<T> other)
default <U> Shrinkable<U> flatMap(java.util.function.Function<T,Arbitrary<U>> flatMapper, int tries, long randomSeed)