public interface NestedCollectable<T>
Modifier and Type | Method and Description |
---|---|
default AnyM<java.lang.Boolean> |
allMatch(java.util.function.Predicate<? super T> c)
True if predicate matches all elements when Monad converted to a Stream
|
default AnyM<java.lang.Boolean> |
anyMatch(java.util.function.Predicate<? super T> c)
True if a single element matches when Monad converted to a Stream
|
default <R,A> AnyM<R> |
collect(java.util.stream.Collector<? super T,A,R> collector) |
default <R,A,C extends java.util.Collection<R>> |
collect(java.util.function.Supplier<C> supplier,
java.util.stream.Collector<? super T,A,R> collector) |
default ListT<T> |
listT() |
AnyM<? extends CyclopsCollectable<T>> |
nestedCollectables() |
default AnyM<java.lang.Boolean> |
noneMatch(java.util.function.Predicate<? super T> c) |
default SetT<T> |
setT() |
default StreamableT<T> |
streamableT() |
default StreamT<T> |
streamT() |
default ListX<ListX<T>> |
toListOfLists() |
default AnyM<ListX<T>> |
toNestedListX() |
default AnyM<SetX<T>> |
toNestedSetX() |
default SetX<SetX<T>> |
toSetOfSets() |
AnyM<? extends CyclopsCollectable<T>> nestedCollectables()
default StreamableT<T> streamableT()
default <R,A,C extends java.util.Collection<R>> C collect(java.util.function.Supplier<C> supplier, java.util.stream.Collector<? super T,A,R> collector)
default AnyM<java.lang.Boolean> allMatch(java.util.function.Predicate<? super T> c)
assertThat(ReactiveSeq.of(1,2,3,4,5).allMatch(it-> it>0 && it <6),equalTo(true));
c
- Predicate to check if all matchdefault AnyM<java.lang.Boolean> anyMatch(java.util.function.Predicate<? super T> c)
assertThat(ReactiveSeq.of(1,2,3,4,5).anyMatch(it-> it.equals(3)),equalTo(true));
c
- Predicate to check if any match