T
- Data type of elements in this Collectablepublic interface CyclopsCollectable<T> extends org.jooq.lambda.Collectable<T>, java.lang.Iterable<T>, Foldable<T>
Modifier and Type | Method and Description |
---|---|
default boolean |
allMatch(java.util.function.Predicate<? super T> c)
True if predicate matches all elements when Monad converted to a Stream
|
default boolean |
anyMatch(java.util.function.Predicate<? super T> c)
True if a single element matches when Monad converted to a Stream
|
default java.util.Optional<T> |
avg()
Get the average of the elements in this collectable.
|
default <U> java.util.Optional<U> |
avg(java.util.function.Function<? super T,? extends U> function)
Get the average of the elements in this collectable.
|
default double |
avgDouble(java.util.function.ToDoubleFunction<? super T> function)
Get the average of the elements in this collectable as
double . |
default double |
avgInt(java.util.function.ToIntFunction<? super T> function)
Get the average of the elements in this collectable as
int . |
default double |
avgLong(java.util.function.ToLongFunction<? super T> function)
Get the average of the elements in this collectable as
long . |
default java.util.Optional<T> |
bitAnd()
Collect all bits in this stream into a single value by applying bitwise and.
|
default <U> java.util.Optional<U> |
bitAnd(java.util.function.Function<? super T,? extends U> function)
Collect all bits in this stream into a single value by applying bitwise and.
|
default int |
bitAndInt(java.util.function.ToIntFunction<? super T> function)
Collect all bits in this stream into a single value by applying bitwise and.
|
default long |
bitAndLong(java.util.function.ToLongFunction<? super T> function)
Collect all bits in this stream into a single value by applying bitwise and.
|
default java.util.Optional<T> |
bitOr()
Collect all bits in this stream into a single value by applying bitwise or.
|
default <U> java.util.Optional<U> |
bitOr(java.util.function.Function<? super T,? extends U> function)
Collect all bits in this stream into a single value by applying bitwise or.
|
default int |
bitOrInt(java.util.function.ToIntFunction<? super T> function)
Collect all bits in this stream into a single value by applying bitwise or.
|
default long |
bitOrLong(java.util.function.ToLongFunction<? super T> function)
Collect all bits in this stream into a single value by applying bitwise or.
|
default <R,A> R |
collect(java.util.stream.Collector<? super T,A,R> collector)
Collect this collectable.
|
org.jooq.lambda.Collectable<T> |
collectable()
Narrow this class to a Collectable
|
default java.lang.String |
commonPrefix()
Get the common prefix of all strings (or to-stringed values) in this stream.
|
default java.lang.String |
commonSuffix()
Get the common prefix of all strings (or to-stringed values) in this stream.
|
default long |
count()
Count the values in this collectable.
|
default long |
count(java.util.function.Predicate<? super T> predicate)
Count the values in this collectable, for which a predicate evaluates to
true.
|
default long |
countDistinct()
Count the distinct values in this collectable.
|
default long |
countDistinct(java.util.function.Predicate<? super T> predicate)
Count the distinct values in this collectable, for which a predicate
evaluates to true.
|
default <U> long |
countDistinctBy(java.util.function.Function<? super T,? extends U> function)
Count the distinct values of a given expression in this collectable.
|
default <U> long |
countDistinctBy(java.util.function.Function<? super T,? extends U> function,
java.util.function.Predicate<? super U> predicate)
Count the distinct values of a given expression in this collectable, for
which a predicate evaluates to true.
|
default <R> FutureW<R> |
foldFuture(java.util.function.Function<? super CyclopsCollectable<T>,? extends R> fn,
java.util.concurrent.Executor ex)
Perform an async fold on the provided executor
|
default <R> Eval<R> |
foldLazy(java.util.function.Function<? super CyclopsCollectable<T>,? extends R> fn,
java.util.concurrent.Executor ex)
Perform a lazy caching fold (results are memoized)
|
default <R,X extends java.lang.Throwable> |
foldTry(java.util.function.Function<? super CyclopsCollectable<T>,? extends R> fn,
java.lang.Class<X>... classes)
Try a fold, capturing any unhandling execution exceptions (that match the provided classes)
|
default java.util.Optional<T> |
max()
Get the maximum value.
|
default java.util.Optional<T> |
max(java.util.Comparator<? super T> comparator)
Get the maximum value by a function.
|
default <U extends java.lang.Comparable<? super U>> |
max(java.util.function.Function<? super T,? extends U> function)
Get the maximum value by a function.
|
default <U> java.util.Optional<U> |
max(java.util.function.Function<? super T,? extends U> function,
java.util.Comparator<? super U> comparator)
Get the maximum value by a function.
|
default ReactiveSeq<T> |
maxAll()
Get the maximum values.
|
default ReactiveSeq<T> |
maxAll(java.util.Comparator<? super T> comparator)
Get the maximum values by a function.
|
default <U extends java.lang.Comparable<? super U>> |
maxAll(java.util.function.Function<? super T,? extends U> function)
Get the maximum values by a function.
|
default <U> ReactiveSeq<U> |
maxAll(java.util.function.Function<? super T,? extends U> function,
java.util.Comparator<? super U> comparator)
Get the maximum values by a function.
|
default <U extends java.lang.Comparable<? super U>> |
maxAllBy(java.util.function.Function<? super T,? extends U> function)
Get the maximum values by a function.
|
default <U> ReactiveSeq<T> |
maxAllBy(java.util.function.Function<? super T,? extends U> function,
java.util.Comparator<? super U> comparator)
Get the maximum values by a function.
|
default <U extends java.lang.Comparable<? super U>> |
maxBy(java.util.function.Function<? super T,? extends U> function)
Get the maximum value by a function.
|
default <U> java.util.Optional<T> |
maxBy(java.util.function.Function<? super T,? extends U> function,
java.util.Comparator<? super U> comparator)
Get the maximum value by a function.
|
default java.util.Optional<T> |
median()
Get the median value.
|
default java.util.Optional<T> |
median(java.util.Comparator<? super T> comparator)
Get the median value.
|
default <U extends java.lang.Comparable<? super U>> |
medianBy(java.util.function.Function<? super T,? extends U> function)
Get the median value by a function.
|
default <U> java.util.Optional<T> |
medianBy(java.util.function.Function<? super T,? extends U> function,
java.util.Comparator<? super U> comparator)
Get the median value by a function.
|
default java.util.Optional<T> |
min()
Get the minimum value.
|
default java.util.Optional<T> |
min(java.util.Comparator<? super T> comparator)
Get the minimum value by a function.
|
default <U extends java.lang.Comparable<? super U>> |
min(java.util.function.Function<? super T,? extends U> function)
Get the minimum value by a function.
|
default <U> java.util.Optional<U> |
min(java.util.function.Function<? super T,? extends U> function,
java.util.Comparator<? super U> comparator)
Get the minimum value by a function.
|
default ReactiveSeq<T> |
minAll()
Get the minimum values.
|
default ReactiveSeq<T> |
minAll(java.util.Comparator<? super T> comparator)
Get the minimum values by a function.
|
default <U extends java.lang.Comparable<? super U>> |
minAll(java.util.function.Function<? super T,? extends U> function)
Get the minimum values by a function.
|
default <U> ReactiveSeq<U> |
minAll(java.util.function.Function<? super T,? extends U> function,
java.util.Comparator<? super U> comparator)
Get the minimum values by a function.
|
default <U extends java.lang.Comparable<? super U>> |
minAllBy(java.util.function.Function<? super T,? extends U> function)
Get the minimum values by a function.
|
default <U> ReactiveSeq<T> |
minAllBy(java.util.function.Function<? super T,? extends U> function,
java.util.Comparator<? super U> comparator)
Get the minimum values by a function.
|
default <U extends java.lang.Comparable<? super U>> |
minBy(java.util.function.Function<? super T,? extends U> function)
Get the minimum value by a function.
|
default <U> java.util.Optional<T> |
minBy(java.util.function.Function<? super T,? extends U> function,
java.util.Comparator<? super U> comparator)
Get the minimum value by a function.
|
default java.util.Optional<T> |
mode()
Get the mode, i.e.
|
default ReactiveSeq<T> |
modeAll()
Get the mode, i.e.
|
default <U> ReactiveSeq<T> |
modeAllBy(java.util.function.Function<? super T,? extends U> function)
Get the mode, i.e.
|
default <U> java.util.Optional<T> |
modeBy(java.util.function.Function<? super T,? extends U> function)
Get the mode, i.e.
|
default boolean |
noneMatch(java.util.function.Predicate<? super T> c)
Whether no element in the collectable matches a given predicate.
|
default java.util.Optional<T> |
percentile(double percentile)
Get the discrete percentile value.
|
default java.util.Optional<T> |
percentile(double percentile,
java.util.Comparator<? super T> comparator)
Get the discrete percentile value.
|
default <U extends java.lang.Comparable<? super U>> |
percentileBy(double percentile,
java.util.function.Function<? super T,? extends U> function)
Get the discrete percentile value by a function.
|
default <U> java.util.Optional<T> |
percentileBy(double percentile,
java.util.function.Function<? super T,? extends U> function,
java.util.Comparator<? super U> comparator)
Get the discrete percentile value by a function.
|
default java.util.Optional<T> |
sum()
Get the sum of the elements in this collectable.
|
default <U> java.util.Optional<U> |
sum(java.util.function.Function<? super T,? extends U> function)
Get the sum of the elements in this collectable.
|
default double |
sumDouble(java.util.function.ToDoubleFunction<? super T> function)
Get the sum of the elements in this collectable as
double . |
default int |
sumInt(java.util.function.ToIntFunction<? super T> function)
Get the sum of the elements in this collectable as
int . |
default long |
sumLong(java.util.function.ToLongFunction<? super T> function)
Get the sum of the elements in this collectable as
long . |
default <C extends java.util.Collection<T>> |
toCollection(java.util.function.Supplier<C> factory)
Collect the collectable into a
Collection . |
default java.util.List<T> |
toList()
Collect the collectable into an
ArrayList . |
default <L extends java.util.List<T>> |
toList(java.util.function.Supplier<L> factory)
Collect the collectable into a
List . |
default <K> java.util.Map<K,T> |
toMap(java.util.function.Function<? super T,? extends K> keyMapper)
Collect the collectable into a
Map with the given keys and the self element as value. |
default <K,V> java.util.Map<K,V> |
toMap(java.util.function.Function<? super T,? extends K> keyMapper,
java.util.function.Function<? super T,? extends V> valueMapper)
Collect the collectable into a
Map . |
default java.util.Set<T> |
toSet()
Collect the collectable into a
LinkedHashSet . |
default <S extends java.util.Set<T>> |
toSet(java.util.function.Supplier<S> factory)
Collect the collectable into a
Set . |
default java.lang.String |
toString(java.lang.CharSequence delimiter)
Consume a stream and concatenate all elements using a separator.
|
default java.lang.String |
toString(java.lang.CharSequence delimiter,
java.lang.CharSequence prefix,
java.lang.CharSequence suffix)
Shortcut for calling
Stream.collect(Collector) with a
Collectors.joining(CharSequence, CharSequence, CharSequence)
collector. |
collect, collect, collect, collect, collect, collect, collect, collect, collect, collect, collect, collect, collect, collect, collect
endsWith, endsWithIterable, findAny, findFirst, firstValue, foldable, foldRight, foldRight, foldRight, foldRightMapToType, get, groupBy, join, join, join, mapReduce, mapReduce, print, print, printErr, printOut, reduce, reduce, reduce, reduce, reduce, reduce, reduce, schedule, scheduleFixedDelay, scheduleFixedRate, single, single, singleOptional, startsWith, startsWithIterable, stream, toConcurrentLazyCollection, toConcurrentLazyStreamable, toLazyCollection, validate, xMatch
default <R> FutureW<R> foldFuture(java.util.function.Function<? super CyclopsCollectable<T>,? extends R> fn, java.util.concurrent.Executor ex)
FutureW<Integer> sum = ListX.of(1,2,3)
.map(this::load)
.foldFuture(list->list.reduce(0,(a,b)->a+b),exec)
Similar to @see ReactiveSeq.futureOperations(Executor)
, but returns FutureWfn
- Folding functionex
- Executor to perform fold ondefault <R> Eval<R> foldLazy(java.util.function.Function<? super CyclopsCollectable<T>,? extends R> fn, java.util.concurrent.Executor ex)
Eval<Integer> sum = ListX.of(1,2,3)
.map(this::load)
.foldLazy(list->list.reduce(0,(a,b)->a+b))
Similar to @see ReactiveSeq#lazyOperations(Executor)
, but always returns Eval (e.g. with nested Optionals)fn
- Folding functiondefault <R,X extends java.lang.Throwable> Try<R,X> foldTry(java.util.function.Function<? super CyclopsCollectable<T>,? extends R> fn, java.lang.Class<X>... classes)
Try<Integer,Throwable> sum = ListX.of(1,2,3)
.map(this::load)
.foldLazy(list->list.reduce(0,(a,b)->a+b),IOException.class)
fn
- Folding functionclasses
- Unhandled Exception types to capture in Trydefault <U> java.util.Optional<T> modeBy(java.util.function.Function<? super T,? extends U> function)
org.jooq.lambda.Collectable
modeBy
in interface org.jooq.lambda.Collectable<T>
default ReactiveSeq<T> modeAll()
org.jooq.lambda.Collectable
modeAll
in interface org.jooq.lambda.Collectable<T>
default <U> ReactiveSeq<T> modeAllBy(java.util.function.Function<? super T,? extends U> function)
org.jooq.lambda.Collectable
modeAllBy
in interface org.jooq.lambda.Collectable<T>
default ReactiveSeq<T> minAll()
org.jooq.lambda.Collectable
This makes the unsafe assumption that
<T extends Comparable<? super T>>
minAll
in interface org.jooq.lambda.Collectable<T>
default ReactiveSeq<T> minAll(java.util.Comparator<? super T> comparator)
org.jooq.lambda.Collectable
minAll
in interface org.jooq.lambda.Collectable<T>
default <U extends java.lang.Comparable<? super U>> ReactiveSeq<U> minAll(java.util.function.Function<? super T,? extends U> function)
org.jooq.lambda.Collectable
minAll
in interface org.jooq.lambda.Collectable<T>
default <U> ReactiveSeq<U> minAll(java.util.function.Function<? super T,? extends U> function, java.util.Comparator<? super U> comparator)
org.jooq.lambda.Collectable
minAll
in interface org.jooq.lambda.Collectable<T>
default <U extends java.lang.Comparable<? super U>> ReactiveSeq<T> minAllBy(java.util.function.Function<? super T,? extends U> function)
org.jooq.lambda.Collectable
minAllBy
in interface org.jooq.lambda.Collectable<T>
default <U> ReactiveSeq<T> minAllBy(java.util.function.Function<? super T,? extends U> function, java.util.Comparator<? super U> comparator)
org.jooq.lambda.Collectable
minAllBy
in interface org.jooq.lambda.Collectable<T>
default ReactiveSeq<T> maxAll()
org.jooq.lambda.Collectable
This makes the unsafe assumption that
<T extends Comparable<? super T>>
maxAll
in interface org.jooq.lambda.Collectable<T>
default ReactiveSeq<T> maxAll(java.util.Comparator<? super T> comparator)
org.jooq.lambda.Collectable
maxAll
in interface org.jooq.lambda.Collectable<T>
default <U extends java.lang.Comparable<? super U>> ReactiveSeq<U> maxAll(java.util.function.Function<? super T,? extends U> function)
org.jooq.lambda.Collectable
maxAll
in interface org.jooq.lambda.Collectable<T>
default <U> ReactiveSeq<U> maxAll(java.util.function.Function<? super T,? extends U> function, java.util.Comparator<? super U> comparator)
org.jooq.lambda.Collectable
maxAll
in interface org.jooq.lambda.Collectable<T>
default <U extends java.lang.Comparable<? super U>> ReactiveSeq<T> maxAllBy(java.util.function.Function<? super T,? extends U> function)
org.jooq.lambda.Collectable
maxAllBy
in interface org.jooq.lambda.Collectable<T>
default <U> ReactiveSeq<T> maxAllBy(java.util.function.Function<? super T,? extends U> function, java.util.Comparator<? super U> comparator)
org.jooq.lambda.Collectable
maxAllBy
in interface org.jooq.lambda.Collectable<T>
default java.util.Optional<T> bitAnd()
org.jooq.lambda.Collectable
bitAnd
in interface org.jooq.lambda.Collectable<T>
default <U> java.util.Optional<U> bitAnd(java.util.function.Function<? super T,? extends U> function)
org.jooq.lambda.Collectable
bitAnd
in interface org.jooq.lambda.Collectable<T>
default int bitAndInt(java.util.function.ToIntFunction<? super T> function)
org.jooq.lambda.Collectable
bitAndInt
in interface org.jooq.lambda.Collectable<T>
default long bitAndLong(java.util.function.ToLongFunction<? super T> function)
org.jooq.lambda.Collectable
bitAndLong
in interface org.jooq.lambda.Collectable<T>
default java.util.Optional<T> bitOr()
org.jooq.lambda.Collectable
bitOr
in interface org.jooq.lambda.Collectable<T>
default <U> java.util.Optional<U> bitOr(java.util.function.Function<? super T,? extends U> function)
org.jooq.lambda.Collectable
bitOr
in interface org.jooq.lambda.Collectable<T>
default int bitOrInt(java.util.function.ToIntFunction<? super T> function)
org.jooq.lambda.Collectable
bitOrInt
in interface org.jooq.lambda.Collectable<T>
default long bitOrLong(java.util.function.ToLongFunction<? super T> function)
org.jooq.lambda.Collectable
bitOrLong
in interface org.jooq.lambda.Collectable<T>
default <K> java.util.Map<K,T> toMap(java.util.function.Function<? super T,? extends K> keyMapper)
org.jooq.lambda.Collectable
Map
with the given keys and the self element as value.toMap
in interface org.jooq.lambda.Collectable<T>
default java.lang.String commonPrefix()
org.jooq.lambda.Collectable
commonPrefix
in interface org.jooq.lambda.Collectable<T>
default java.lang.String commonSuffix()
org.jooq.lambda.Collectable
commonSuffix
in interface org.jooq.lambda.Collectable<T>
default <R,A> R collect(java.util.stream.Collector<? super T,A,R> collector)
org.jooq.lambda.Collectable
collect
in interface org.jooq.lambda.Collectable<T>
default long count()
org.jooq.lambda.Collectable
count
in interface org.jooq.lambda.Collectable<T>
default long count(java.util.function.Predicate<? super T> predicate)
org.jooq.lambda.Collectable
count
in interface org.jooq.lambda.Collectable<T>
default long countDistinct(java.util.function.Predicate<? super T> predicate)
org.jooq.lambda.Collectable
countDistinct
in interface org.jooq.lambda.Collectable<T>
default <U> long countDistinctBy(java.util.function.Function<? super T,? extends U> function, java.util.function.Predicate<? super U> predicate)
org.jooq.lambda.Collectable
countDistinctBy
in interface org.jooq.lambda.Collectable<T>
org.jooq.lambda.Collectable<T> collectable()
default long countDistinct()
org.jooq.lambda.Collectable
countDistinct
in interface org.jooq.lambda.Collectable<T>
default <U> long countDistinctBy(java.util.function.Function<? super T,? extends U> function)
org.jooq.lambda.Collectable
countDistinctBy
in interface org.jooq.lambda.Collectable<T>
default java.util.Optional<T> mode()
org.jooq.lambda.Collectable
mode
in interface org.jooq.lambda.Collectable<T>
default java.util.Optional<T> sum()
org.jooq.lambda.Collectable
sum
in interface org.jooq.lambda.Collectable<T>
default <U> java.util.Optional<U> sum(java.util.function.Function<? super T,? extends U> function)
org.jooq.lambda.Collectable
sum
in interface org.jooq.lambda.Collectable<T>
default int sumInt(java.util.function.ToIntFunction<? super T> function)
org.jooq.lambda.Collectable
int
.sumInt
in interface org.jooq.lambda.Collectable<T>
default long sumLong(java.util.function.ToLongFunction<? super T> function)
org.jooq.lambda.Collectable
long
.sumLong
in interface org.jooq.lambda.Collectable<T>
default double sumDouble(java.util.function.ToDoubleFunction<? super T> function)
org.jooq.lambda.Collectable
double
.sumDouble
in interface org.jooq.lambda.Collectable<T>
default java.util.Optional<T> avg()
org.jooq.lambda.Collectable
avg
in interface org.jooq.lambda.Collectable<T>
default <U> java.util.Optional<U> avg(java.util.function.Function<? super T,? extends U> function)
org.jooq.lambda.Collectable
avg
in interface org.jooq.lambda.Collectable<T>
default double avgInt(java.util.function.ToIntFunction<? super T> function)
org.jooq.lambda.Collectable
int
.avgInt
in interface org.jooq.lambda.Collectable<T>
default double avgLong(java.util.function.ToLongFunction<? super T> function)
org.jooq.lambda.Collectable
long
.avgLong
in interface org.jooq.lambda.Collectable<T>
default double avgDouble(java.util.function.ToDoubleFunction<? super T> function)
org.jooq.lambda.Collectable
double
.avgDouble
in interface org.jooq.lambda.Collectable<T>
default java.util.Optional<T> min()
org.jooq.lambda.Collectable
This makes the unsafe assumption that
<T extends Comparable<? super T>>
min
in interface org.jooq.lambda.Collectable<T>
default java.util.Optional<T> min(java.util.Comparator<? super T> comparator)
org.jooq.lambda.Collectable
min
in interface org.jooq.lambda.Collectable<T>
default <U extends java.lang.Comparable<? super U>> java.util.Optional<U> min(java.util.function.Function<? super T,? extends U> function)
org.jooq.lambda.Collectable
min
in interface org.jooq.lambda.Collectable<T>
default <U> java.util.Optional<U> min(java.util.function.Function<? super T,? extends U> function, java.util.Comparator<? super U> comparator)
org.jooq.lambda.Collectable
min
in interface org.jooq.lambda.Collectable<T>
default <U extends java.lang.Comparable<? super U>> java.util.Optional<T> minBy(java.util.function.Function<? super T,? extends U> function)
org.jooq.lambda.Collectable
minBy
in interface org.jooq.lambda.Collectable<T>
default <U> java.util.Optional<T> minBy(java.util.function.Function<? super T,? extends U> function, java.util.Comparator<? super U> comparator)
org.jooq.lambda.Collectable
minBy
in interface org.jooq.lambda.Collectable<T>
default java.util.Optional<T> max()
org.jooq.lambda.Collectable
This makes the unsafe assumption that
<T extends Comparable<? super T>>
max
in interface org.jooq.lambda.Collectable<T>
default java.util.Optional<T> max(java.util.Comparator<? super T> comparator)
org.jooq.lambda.Collectable
max
in interface org.jooq.lambda.Collectable<T>
default <U extends java.lang.Comparable<? super U>> java.util.Optional<U> max(java.util.function.Function<? super T,? extends U> function)
org.jooq.lambda.Collectable
max
in interface org.jooq.lambda.Collectable<T>
default <U> java.util.Optional<U> max(java.util.function.Function<? super T,? extends U> function, java.util.Comparator<? super U> comparator)
org.jooq.lambda.Collectable
max
in interface org.jooq.lambda.Collectable<T>
default <U extends java.lang.Comparable<? super U>> java.util.Optional<T> maxBy(java.util.function.Function<? super T,? extends U> function)
org.jooq.lambda.Collectable
maxBy
in interface org.jooq.lambda.Collectable<T>
default <U> java.util.Optional<T> maxBy(java.util.function.Function<? super T,? extends U> function, java.util.Comparator<? super U> comparator)
org.jooq.lambda.Collectable
maxBy
in interface org.jooq.lambda.Collectable<T>
default java.util.Optional<T> median()
org.jooq.lambda.Collectable
This makes the unsafe assumption that
<T extends Comparable<? super T>>
median
in interface org.jooq.lambda.Collectable<T>
default java.util.Optional<T> median(java.util.Comparator<? super T> comparator)
org.jooq.lambda.Collectable
median
in interface org.jooq.lambda.Collectable<T>
default <U extends java.lang.Comparable<? super U>> java.util.Optional<T> medianBy(java.util.function.Function<? super T,? extends U> function)
org.jooq.lambda.Collectable
medianBy
in interface org.jooq.lambda.Collectable<T>
default <U> java.util.Optional<T> medianBy(java.util.function.Function<? super T,? extends U> function, java.util.Comparator<? super U> comparator)
org.jooq.lambda.Collectable
medianBy
in interface org.jooq.lambda.Collectable<T>
default java.util.Optional<T> percentile(double percentile)
org.jooq.lambda.Collectable
This makes the unsafe assumption that
<T extends Comparable<? super T>>
percentile
in interface org.jooq.lambda.Collectable<T>
default java.util.Optional<T> percentile(double percentile, java.util.Comparator<? super T> comparator)
org.jooq.lambda.Collectable
percentile
in interface org.jooq.lambda.Collectable<T>
default <U extends java.lang.Comparable<? super U>> java.util.Optional<T> percentileBy(double percentile, java.util.function.Function<? super T,? extends U> function)
org.jooq.lambda.Collectable
percentileBy
in interface org.jooq.lambda.Collectable<T>
default <U> java.util.Optional<T> percentileBy(double percentile, java.util.function.Function<? super T,? extends U> function, java.util.Comparator<? super U> comparator)
org.jooq.lambda.Collectable
percentileBy
in interface org.jooq.lambda.Collectable<T>
default 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));
allMatch
in interface org.jooq.lambda.Collectable<T>
c
- Predicate to check if all matchdefault boolean anyMatch(java.util.function.Predicate<? super T> c)
ReactiveSeq.of(1,2,3,4,5).anyMatch(it-> it.equals(3))
//true
anyMatch
in interface org.jooq.lambda.Collectable<T>
c
- Predicate to check if any matchdefault boolean noneMatch(java.util.function.Predicate<? super T> c)
org.jooq.lambda.Collectable
noneMatch
in interface org.jooq.lambda.Collectable<T>
default java.util.List<T> toList()
org.jooq.lambda.Collectable
ArrayList
.toList
in interface org.jooq.lambda.Collectable<T>
default <L extends java.util.List<T>> L toList(java.util.function.Supplier<L> factory)
org.jooq.lambda.Collectable
List
.toList
in interface org.jooq.lambda.Collectable<T>
default java.util.Set<T> toSet()
org.jooq.lambda.Collectable
LinkedHashSet
.toSet
in interface org.jooq.lambda.Collectable<T>
default <S extends java.util.Set<T>> S toSet(java.util.function.Supplier<S> factory)
org.jooq.lambda.Collectable
Set
.toSet
in interface org.jooq.lambda.Collectable<T>
default <C extends java.util.Collection<T>> C toCollection(java.util.function.Supplier<C> factory)
org.jooq.lambda.Collectable
Collection
.toCollection
in interface org.jooq.lambda.Collectable<T>
default <K,V> java.util.Map<K,V> toMap(java.util.function.Function<? super T,? extends K> keyMapper, java.util.function.Function<? super T,? extends V> valueMapper)
org.jooq.lambda.Collectable
Map
.toMap
in interface org.jooq.lambda.Collectable<T>
default java.lang.String toString(java.lang.CharSequence delimiter)
org.jooq.lambda.Collectable
toString
in interface org.jooq.lambda.Collectable<T>
default java.lang.String toString(java.lang.CharSequence delimiter, java.lang.CharSequence prefix, java.lang.CharSequence suffix)
org.jooq.lambda.Collectable
Stream.collect(Collector)
with a
Collectors.joining(CharSequence, CharSequence, CharSequence)
collector.toString
in interface org.jooq.lambda.Collectable<T>