@API(status=MAINTAINED,
since="1.0")
public interface ShrinkingSequence<T>
Modifier and Type | Interface and Description |
---|---|
static class |
ShrinkingSequence.ShrinkingSequenceFacade |
Modifier and Type | Method and Description |
---|---|
default ShrinkingSequence<T> |
andThen(java.util.function.Function<Shrinkable<T>,ShrinkingSequence<T>> createFollowupSequence) |
FalsificationResult<T> |
current() |
static <T> ShrinkingSequence<T> |
dontShrink(Shrinkable<T> shrinkable) |
void |
init(FalsificationResult<T> initialCurrent) |
default <U> ShrinkingSequence<U> |
map(java.util.function.Function<FalsificationResult<T>,FalsificationResult<U>> mapper) |
default <U> ShrinkingSequence<U> |
mapValue(java.util.function.Function<T,U> mapper) |
boolean |
next(java.lang.Runnable count,
java.util.function.Consumer<FalsificationResult<T>> falsifiedReporter) |
static <T> ShrinkingSequence<T> |
startWith(Shrinkable<T> startingShrinkable,
Falsifier<T> falsifier) |
static <T> ShrinkingSequence<T> dontShrink(Shrinkable<T> shrinkable)
@API(status=EXPERIMENTAL, since="1.2.0") static <T> ShrinkingSequence<T> startWith(Shrinkable<T> startingShrinkable, Falsifier<T> falsifier)
boolean next(java.lang.Runnable count, java.util.function.Consumer<FalsificationResult<T>> falsifiedReporter)
FalsificationResult<T> current()
@API(status=INTERNAL) void init(FalsificationResult<T> initialCurrent)
default ShrinkingSequence<T> andThen(java.util.function.Function<Shrinkable<T>,ShrinkingSequence<T>> createFollowupSequence)
default <U> ShrinkingSequence<U> mapValue(java.util.function.Function<T,U> mapper)
default <U> ShrinkingSequence<U> map(java.util.function.Function<FalsificationResult<T>,FalsificationResult<U>> mapper)