@API(status=EXPERIMENTAL, since="1.3.0") public interface EdgeCases<T> extends java.lang.Iterable<Shrinkable<T>>
Modifier and Type | Interface and Description |
---|---|
static class |
EdgeCases.EdgeCasesFacade |
Modifier and Type | Method and Description |
---|---|
static <T> EdgeCases<T> |
concat(EdgeCases<T>... rest) |
static <T> EdgeCases<T> |
concat(java.util.List<EdgeCases<T>> edgeCases) |
default EdgeCases<T> |
filter(java.util.function.Predicate<T> filterPredicate) |
default <U> EdgeCases<U> |
flatMapArbitrary(java.util.function.Function<T,Arbitrary<U>> mapper) |
static <T> EdgeCases<T> |
fromShrinkables(java.util.List<Shrinkable<T>> shrinkables) |
static <T> EdgeCases<T> |
fromSupplier(java.util.function.Supplier<Shrinkable<T>> supplier) |
static <T> EdgeCases<T> |
fromSuppliers(java.util.List<java.util.function.Supplier<Shrinkable<T>>> suppliers) |
default EdgeCases<T> |
ignoreException(java.lang.Class<? extends java.lang.Throwable> exceptionType) |
default boolean |
isEmpty() |
default java.util.Iterator<Shrinkable<T>> |
iterator() |
default <U> EdgeCases<U> |
map(java.util.function.Function<T,U> mapper) |
default <U> EdgeCases<U> |
mapShrinkable(java.util.function.Function<Shrinkable<T>,Shrinkable<U>> mapper) |
static <T> EdgeCases<T> |
none() |
default int |
size() |
java.util.List<java.util.function.Supplier<Shrinkable<T>>> |
suppliers() |
java.util.List<java.util.function.Supplier<Shrinkable<T>>> suppliers()
default int size()
default boolean isEmpty()
default java.util.Iterator<Shrinkable<T>> iterator()
iterator
in interface java.lang.Iterable<Shrinkable<T>>
@API(status=INTERNAL) static <T> EdgeCases<T> fromSuppliers(java.util.List<java.util.function.Supplier<Shrinkable<T>>> suppliers)
@API(status=INTERNAL) static <T> EdgeCases<T> none()
@API(status=INTERNAL) static <T> EdgeCases<T> fromSupplier(java.util.function.Supplier<Shrinkable<T>> supplier)
@API(status=INTERNAL) static <T> EdgeCases<T> fromShrinkables(java.util.List<Shrinkable<T>> shrinkables)
@API(status=INTERNAL) default <U> EdgeCases<U> mapShrinkable(java.util.function.Function<Shrinkable<T>,Shrinkable<U>> mapper)
@API(status=INTERNAL) default EdgeCases<T> filter(java.util.function.Predicate<T> filterPredicate)
@API(status=INTERNAL) default <U> EdgeCases<U> flatMapArbitrary(java.util.function.Function<T,Arbitrary<U>> mapper)