T
- Data type of the elements in the nested Monadpublic interface NestedCollectable<T>
Modifier and Type | Method and Description |
---|---|
default AnyM<java.lang.Boolean> |
allMatch(java.util.function.Predicate<? super T> c)
Each nested value will be true if predicate matches all elements when Monad converted to a Stream
Nested analog to
ReactiveSeq.allMatch(java.util.function.Predicate<? super T>) |
default AnyM<java.lang.Boolean> |
anyMatch(java.util.function.Predicate<? super T> c)
Each nested value will be True if a single element matches when Monad converted to a Stream
Nested analog to
ReactiveSeq.anyMatch(java.util.function.Predicate<? super T>) |
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)
Reduce each nested monad to a boolean value - true if the predicates match none of it's elements, otherwise false
|
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)
ReactiveSeq.allMatch(java.util.function.Predicate<? super T>)
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)
ReactiveSeq.anyMatch(java.util.function.Predicate<? super T>)
assertThat(ReactiveSeq.of(1,2,3,4,5).anyMatch(it-> it.equals(3)),equalTo(true));
c
- Predicate to check if any matchdefault AnyM<java.lang.Boolean> noneMatch(java.util.function.Predicate<? super T> c)
c
- Predicate to check if no matchdefault ListX<ListX<T>> toListOfLists()
default SetX<SetX<T>> toSetOfSets()
default AnyM<ListX<T>> toNestedListX()