public interface Collectable<T>
Seq
or Window
delegating
common aggregation functions to collect(Collector)
Modifier and Type | Method | Description |
---|---|---|
boolean |
allMatch(java.util.function.Predicate<? super T> predicate) |
Whether all elements in the collectable match a given predicate.
|
boolean |
anyMatch(java.util.function.Predicate<? super T> predicate) |
Whether any element in the collectable matches a given predicate.
|
java.util.Optional<T> |
avg() |
Get the average of the elements in this collectable.
|
<U> java.util.Optional<U> |
avg(java.util.function.Function<? super T,? extends U> function) |
Get the average of the elements in this collectable.
|
double |
avgDouble(java.util.function.ToDoubleFunction<? super T> function) |
Get the average of the elements in this collectable as
double . |
double |
avgInt(java.util.function.ToIntFunction<? super T> function) |
Get the average of the elements in this collectable as
int . |
double |
avgLong(java.util.function.ToLongFunction<? super T> function) |
Get the average of the elements in this collectable as
long . |
java.util.Optional<T> |
bitAnd() |
Collect all bits in this stream into a single value by applying bitwise and.
|
<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.
|
int |
bitAndInt(java.util.function.ToIntFunction<? super T> function) |
Collect all bits in this stream into a single value by applying bitwise and.
|
long |
bitAndLong(java.util.function.ToLongFunction<? super T> function) |
Collect all bits in this stream into a single value by applying bitwise and.
|
java.util.Optional<T> |
bitOr() |
Collect all bits in this stream into a single value by applying bitwise or.
|
<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.
|
int |
bitOrInt(java.util.function.ToIntFunction<? super T> function) |
Collect all bits in this stream into a single value by applying bitwise or.
|
long |
bitOrLong(java.util.function.ToLongFunction<? super T> function) |
Collect all bits in this stream into a single value by applying bitwise or.
|
<R,A> R |
collect(java.util.stream.Collector<? super T,A,R> collector) |
Collect this collectable.
|
default <R1,R2,A1,A2> |
collect(java.util.stream.Collector<? super T,A1,R1> collector1,
java.util.stream.Collector<? super T,A2,R2> collector2) |
Collect this collectable into 2
Collector s. |
default <R1,R2,R3,A1,A2,A3> |
collect(java.util.stream.Collector<? super T,A1,R1> collector1,
java.util.stream.Collector<? super T,A2,R2> collector2,
java.util.stream.Collector<? super T,A3,R3> collector3) |
Collect this collectable into 3
Collector s. |
default <R1,R2,R3,R4,A1,A2,A3,A4> |
collect(java.util.stream.Collector<? super T,A1,R1> collector1,
java.util.stream.Collector<? super T,A2,R2> collector2,
java.util.stream.Collector<? super T,A3,R3> collector3,
java.util.stream.Collector<? super T,A4,R4> collector4) |
Collect this collectable into 4
Collector s. |
default <R1,R2,R3,R4,R5,A1,A2,A3,A4,A5> |
collect(java.util.stream.Collector<? super T,A1,R1> collector1,
java.util.stream.Collector<? super T,A2,R2> collector2,
java.util.stream.Collector<? super T,A3,R3> collector3,
java.util.stream.Collector<? super T,A4,R4> collector4,
java.util.stream.Collector<? super T,A5,R5> collector5) |
Collect this collectable into 5
Collector s. |
default <R1,R2,R3,R4,R5,R6,A1,A2,A3,A4,A5,A6> |
collect(java.util.stream.Collector<? super T,A1,R1> collector1,
java.util.stream.Collector<? super T,A2,R2> collector2,
java.util.stream.Collector<? super T,A3,R3> collector3,
java.util.stream.Collector<? super T,A4,R4> collector4,
java.util.stream.Collector<? super T,A5,R5> collector5,
java.util.stream.Collector<? super T,A6,R6> collector6) |
Collect this collectable into 6
Collector s. |
default <R1,R2,R3,R4,R5,R6,R7,A1,A2,A3,A4,A5,A6,A7> |
collect(java.util.stream.Collector<? super T,A1,R1> collector1,
java.util.stream.Collector<? super T,A2,R2> collector2,
java.util.stream.Collector<? super T,A3,R3> collector3,
java.util.stream.Collector<? super T,A4,R4> collector4,
java.util.stream.Collector<? super T,A5,R5> collector5,
java.util.stream.Collector<? super T,A6,R6> collector6,
java.util.stream.Collector<? super T,A7,R7> collector7) |
Collect this collectable into 7
Collector s. |
default <R1,R2,R3,R4,R5,R6,R7,R8,A1,A2,A3,A4,A5,A6,A7,A8> |
collect(java.util.stream.Collector<? super T,A1,R1> collector1,
java.util.stream.Collector<? super T,A2,R2> collector2,
java.util.stream.Collector<? super T,A3,R3> collector3,
java.util.stream.Collector<? super T,A4,R4> collector4,
java.util.stream.Collector<? super T,A5,R5> collector5,
java.util.stream.Collector<? super T,A6,R6> collector6,
java.util.stream.Collector<? super T,A7,R7> collector7,
java.util.stream.Collector<? super T,A8,R8> collector8) |
Collect this collectable into 8
Collector s. |
default <R1,R2,R3,R4,R5,R6,R7,R8,R9,A1,A2,A3,A4,A5,A6,A7,A8,A9> |
collect(java.util.stream.Collector<? super T,A1,R1> collector1,
java.util.stream.Collector<? super T,A2,R2> collector2,
java.util.stream.Collector<? super T,A3,R3> collector3,
java.util.stream.Collector<? super T,A4,R4> collector4,
java.util.stream.Collector<? super T,A5,R5> collector5,
java.util.stream.Collector<? super T,A6,R6> collector6,
java.util.stream.Collector<? super T,A7,R7> collector7,
java.util.stream.Collector<? super T,A8,R8> collector8,
java.util.stream.Collector<? super T,A9,R9> collector9) |
Collect this collectable into 9
Collector s. |
default <R1,R2,R3,R4,R5,R6,R7,R8,R9,R10,A1,A2,A3,A4,A5,A6,A7,A8,A9,A10> |
collect(java.util.stream.Collector<? super T,A1,R1> collector1,
java.util.stream.Collector<? super T,A2,R2> collector2,
java.util.stream.Collector<? super T,A3,R3> collector3,
java.util.stream.Collector<? super T,A4,R4> collector4,
java.util.stream.Collector<? super T,A5,R5> collector5,
java.util.stream.Collector<? super T,A6,R6> collector6,
java.util.stream.Collector<? super T,A7,R7> collector7,
java.util.stream.Collector<? super T,A8,R8> collector8,
java.util.stream.Collector<? super T,A9,R9> collector9,
java.util.stream.Collector<? super T,A10,R10> collector10) |
Collect this collectable into 10
Collector s. |
default <R1,R2,R3,R4,R5,R6,R7,R8,R9,R10,R11,A1,A2,A3,A4,A5,A6,A7,A8,A9,A10,A11> |
collect(java.util.stream.Collector<? super T,A1,R1> collector1,
java.util.stream.Collector<? super T,A2,R2> collector2,
java.util.stream.Collector<? super T,A3,R3> collector3,
java.util.stream.Collector<? super T,A4,R4> collector4,
java.util.stream.Collector<? super T,A5,R5> collector5,
java.util.stream.Collector<? super T,A6,R6> collector6,
java.util.stream.Collector<? super T,A7,R7> collector7,
java.util.stream.Collector<? super T,A8,R8> collector8,
java.util.stream.Collector<? super T,A9,R9> collector9,
java.util.stream.Collector<? super T,A10,R10> collector10,
java.util.stream.Collector<? super T,A11,R11> collector11) |
Collect this collectable into 11
Collector s. |
default <R1,R2,R3,R4,R5,R6,R7,R8,R9,R10,R11,R12,A1,A2,A3,A4,A5,A6,A7,A8,A9,A10,A11,A12> |
collect(java.util.stream.Collector<? super T,A1,R1> collector1,
java.util.stream.Collector<? super T,A2,R2> collector2,
java.util.stream.Collector<? super T,A3,R3> collector3,
java.util.stream.Collector<? super T,A4,R4> collector4,
java.util.stream.Collector<? super T,A5,R5> collector5,
java.util.stream.Collector<? super T,A6,R6> collector6,
java.util.stream.Collector<? super T,A7,R7> collector7,
java.util.stream.Collector<? super T,A8,R8> collector8,
java.util.stream.Collector<? super T,A9,R9> collector9,
java.util.stream.Collector<? super T,A10,R10> collector10,
java.util.stream.Collector<? super T,A11,R11> collector11,
java.util.stream.Collector<? super T,A12,R12> collector12) |
Collect this collectable into 12
Collector s. |
default <R1,R2,R3,R4,R5,R6,R7,R8,R9,R10,R11,R12,R13,A1,A2,A3,A4,A5,A6,A7,A8,A9,A10,A11,A12,A13> |
collect(java.util.stream.Collector<? super T,A1,R1> collector1,
java.util.stream.Collector<? super T,A2,R2> collector2,
java.util.stream.Collector<? super T,A3,R3> collector3,
java.util.stream.Collector<? super T,A4,R4> collector4,
java.util.stream.Collector<? super T,A5,R5> collector5,
java.util.stream.Collector<? super T,A6,R6> collector6,
java.util.stream.Collector<? super T,A7,R7> collector7,
java.util.stream.Collector<? super T,A8,R8> collector8,
java.util.stream.Collector<? super T,A9,R9> collector9,
java.util.stream.Collector<? super T,A10,R10> collector10,
java.util.stream.Collector<? super T,A11,R11> collector11,
java.util.stream.Collector<? super T,A12,R12> collector12,
java.util.stream.Collector<? super T,A13,R13> collector13) |
Collect this collectable into 13
Collector s. |
default <R1,R2,R3,R4,R5,R6,R7,R8,R9,R10,R11,R12,R13,R14,A1,A2,A3,A4,A5,A6,A7,A8,A9,A10,A11,A12,A13,A14> |
collect(java.util.stream.Collector<? super T,A1,R1> collector1,
java.util.stream.Collector<? super T,A2,R2> collector2,
java.util.stream.Collector<? super T,A3,R3> collector3,
java.util.stream.Collector<? super T,A4,R4> collector4,
java.util.stream.Collector<? super T,A5,R5> collector5,
java.util.stream.Collector<? super T,A6,R6> collector6,
java.util.stream.Collector<? super T,A7,R7> collector7,
java.util.stream.Collector<? super T,A8,R8> collector8,
java.util.stream.Collector<? super T,A9,R9> collector9,
java.util.stream.Collector<? super T,A10,R10> collector10,
java.util.stream.Collector<? super T,A11,R11> collector11,
java.util.stream.Collector<? super T,A12,R12> collector12,
java.util.stream.Collector<? super T,A13,R13> collector13,
java.util.stream.Collector<? super T,A14,R14> collector14) |
Collect this collectable into 14
Collector s. |
default <R1,R2,R3,R4,R5,R6,R7,R8,R9,R10,R11,R12,R13,R14,R15,A1,A2,A3,A4,A5,A6,A7,A8,A9,A10,A11,A12,A13,A14,A15> |
collect(java.util.stream.Collector<? super T,A1,R1> collector1,
java.util.stream.Collector<? super T,A2,R2> collector2,
java.util.stream.Collector<? super T,A3,R3> collector3,
java.util.stream.Collector<? super T,A4,R4> collector4,
java.util.stream.Collector<? super T,A5,R5> collector5,
java.util.stream.Collector<? super T,A6,R6> collector6,
java.util.stream.Collector<? super T,A7,R7> collector7,
java.util.stream.Collector<? super T,A8,R8> collector8,
java.util.stream.Collector<? super T,A9,R9> collector9,
java.util.stream.Collector<? super T,A10,R10> collector10,
java.util.stream.Collector<? super T,A11,R11> collector11,
java.util.stream.Collector<? super T,A12,R12> collector12,
java.util.stream.Collector<? super T,A13,R13> collector13,
java.util.stream.Collector<? super T,A14,R14> collector14,
java.util.stream.Collector<? super T,A15,R15> collector15) |
Collect this collectable into 15
Collector s. |
default <R1,R2,R3,R4,R5,R6,R7,R8,R9,R10,R11,R12,R13,R14,R15,R16,A1,A2,A3,A4,A5,A6,A7,A8,A9,A10,A11,A12,A13,A14,A15,A16> |
collect(java.util.stream.Collector<? super T,A1,R1> collector1,
java.util.stream.Collector<? super T,A2,R2> collector2,
java.util.stream.Collector<? super T,A3,R3> collector3,
java.util.stream.Collector<? super T,A4,R4> collector4,
java.util.stream.Collector<? super T,A5,R5> collector5,
java.util.stream.Collector<? super T,A6,R6> collector6,
java.util.stream.Collector<? super T,A7,R7> collector7,
java.util.stream.Collector<? super T,A8,R8> collector8,
java.util.stream.Collector<? super T,A9,R9> collector9,
java.util.stream.Collector<? super T,A10,R10> collector10,
java.util.stream.Collector<? super T,A11,R11> collector11,
java.util.stream.Collector<? super T,A12,R12> collector12,
java.util.stream.Collector<? super T,A13,R13> collector13,
java.util.stream.Collector<? super T,A14,R14> collector14,
java.util.stream.Collector<? super T,A15,R15> collector15,
java.util.stream.Collector<? super T,A16,R16> collector16) |
Collect this collectable into 16
Collector s. |
java.lang.String |
commonPrefix() |
Get the common prefix of all strings (or to-stringed values) in this stream.
|
java.lang.String |
commonSuffix() |
Get the common prefix of all strings (or to-stringed values) in this stream.
|
long |
count() |
Count the values in this collectable.
|
long |
count(java.util.function.Predicate<? super T> predicate) |
Count the values in this collectable, for which a predicate evaluates to
true.
|
long |
countDistinct() |
Count the distinct values in this collectable.
|
long |
countDistinct(java.util.function.Predicate<? super T> predicate) |
Count the distinct values in this collectable, for which a predicate
evaluates to true.
|
<U> long |
countDistinctBy(java.util.function.Function<? super T,? extends U> function) |
Count the distinct values of a given expression in this collectable.
|
<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.
|
java.util.Optional<T> |
max() |
Get the maximum value.
|
java.util.Optional<T> |
max(java.util.Comparator<? super T> comparator) |
Get the maximum value by a function.
|
<U extends java.lang.Comparable<? super U>> |
max(java.util.function.Function<? super T,? extends U> function) |
Get the maximum value by a function.
|
<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.
|
Seq<T> |
maxAll() |
Get the maximum values.
|
Seq<T> |
maxAll(java.util.Comparator<? super T> comparator) |
Get the maximum values by a function.
|
<U extends java.lang.Comparable<? super U>> |
maxAll(java.util.function.Function<? super T,? extends U> function) |
Get the maximum values by a function.
|
<U> Seq<U> |
maxAll(java.util.function.Function<? super T,? extends U> function,
java.util.Comparator<? super U> comparator) |
Get the maximum values by a function.
|
<U extends java.lang.Comparable<? super U>> |
maxAllBy(java.util.function.Function<? super T,? extends U> function) |
Get the maximum values by a function.
|
<U> Seq<T> |
maxAllBy(java.util.function.Function<? super T,? extends U> function,
java.util.Comparator<? super U> comparator) |
Get the maximum values by a function.
|
<U extends java.lang.Comparable<? super U>> |
maxBy(java.util.function.Function<? super T,? extends U> function) |
Get the maximum value by a function.
|
<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.
|
java.util.Optional<T> |
median() |
Get the median value.
|
java.util.Optional<T> |
median(java.util.Comparator<? super T> comparator) |
Get the median value.
|
<U extends java.lang.Comparable<? super U>> |
medianBy(java.util.function.Function<? super T,? extends U> function) |
Get the median value by a function.
|
<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.
|
java.util.Optional<T> |
min() |
Get the minimum value.
|
java.util.Optional<T> |
min(java.util.Comparator<? super T> comparator) |
Get the minimum value by a function.
|
<U extends java.lang.Comparable<? super U>> |
min(java.util.function.Function<? super T,? extends U> function) |
Get the minimum value by a function.
|
<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.
|
Seq<T> |
minAll() |
Get the minimum values.
|
Seq<T> |
minAll(java.util.Comparator<? super T> comparator) |
Get the minimum values by a function.
|
<U extends java.lang.Comparable<? super U>> |
minAll(java.util.function.Function<? super T,? extends U> function) |
Get the minimum values by a function.
|
<U> Seq<U> |
minAll(java.util.function.Function<? super T,? extends U> function,
java.util.Comparator<? super U> comparator) |
Get the minimum values by a function.
|
<U extends java.lang.Comparable<? super U>> |
minAllBy(java.util.function.Function<? super T,? extends U> function) |
Get the minimum values by a function.
|
<U> Seq<T> |
minAllBy(java.util.function.Function<? super T,? extends U> function,
java.util.Comparator<? super U> comparator) |
Get the minimum values by a function.
|
<U extends java.lang.Comparable<? super U>> |
minBy(java.util.function.Function<? super T,? extends U> function) |
Get the minimum value by a function.
|
<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.
|
java.util.Optional<T> |
mode() |
Get the mode, i.e. the value that appears most often in the collectable.
|
Seq<T> |
modeAll() |
Get the mode, i.e. the values that appear most often in the collectable.
|
<U> Seq<T> |
modeAllBy(java.util.function.Function<? super T,? extends U> function) |
Get the mode, i.e. the values that appear most often in the collectable.
|
<U> java.util.Optional<T> |
modeBy(java.util.function.Function<? super T,? extends U> function) |
Get the mode, i.e. the value that appears most often in the collectable.
|
boolean |
noneMatch(java.util.function.Predicate<? super T> predicate) |
Whether no element in the collectable matches a given predicate.
|
java.util.Optional<T> |
percentile(double percentile) |
Get the discrete percentile value.
|
java.util.Optional<T> |
percentile(double percentile,
java.util.Comparator<? super T> comparator) |
Get the discrete percentile value.
|
<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.
|
<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.
|
java.util.Optional<T> |
sum() |
Get the sum of the elements in this collectable.
|
<U> java.util.Optional<U> |
sum(java.util.function.Function<? super T,? extends U> function) |
Get the sum of the elements in this collectable.
|
double |
sumDouble(java.util.function.ToDoubleFunction<? super T> function) |
Get the sum of the elements in this collectable as
double . |
int |
sumInt(java.util.function.ToIntFunction<? super T> function) |
Get the sum of the elements in this collectable as
int . |
long |
sumLong(java.util.function.ToLongFunction<? super T> function) |
Get the sum of the elements in this collectable as
long . |
<C extends java.util.Collection<T>> |
toCollection(java.util.function.Supplier<C> factory) |
Collect the collectable into a
Collection . |
java.util.List<T> |
toList() |
Collect the collectable into an
ArrayList . |
<L extends java.util.List<T>> |
toList(java.util.function.Supplier<L> factory) |
Collect the collectable into a
List . |
<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. |
<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 . |
java.util.Set<T> |
toSet() |
Collect the collectable into a
LinkedHashSet . |
<S extends java.util.Set<T>> |
toSet(java.util.function.Supplier<S> factory) |
Collect the collectable into a
Set . |
java.lang.String |
toString(java.lang.CharSequence delimiter) |
Consume a stream and concatenate all elements using a separator.
|
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. |
java.util.List<T> |
toUnmodifiableList() |
Collect the collectable into an unmodifiable
List . |
java.util.Set<T> |
toUnmodifiableSet() |
Collect the collectable into an unmodifiable
Set . |
<R,A> R collect(java.util.stream.Collector<? super T,A,R> collector)
default <R1,R2,A1,A2> Tuple2<R1,R2> collect(java.util.stream.Collector<? super T,A1,R1> collector1, java.util.stream.Collector<? super T,A2,R2> collector2)
Collector
s.default <R1,R2,R3,A1,A2,A3> Tuple3<R1,R2,R3> collect(java.util.stream.Collector<? super T,A1,R1> collector1, java.util.stream.Collector<? super T,A2,R2> collector2, java.util.stream.Collector<? super T,A3,R3> collector3)
Collector
s.default <R1,R2,R3,R4,A1,A2,A3,A4> Tuple4<R1,R2,R3,R4> collect(java.util.stream.Collector<? super T,A1,R1> collector1, java.util.stream.Collector<? super T,A2,R2> collector2, java.util.stream.Collector<? super T,A3,R3> collector3, java.util.stream.Collector<? super T,A4,R4> collector4)
Collector
s.default <R1,R2,R3,R4,R5,A1,A2,A3,A4,A5> Tuple5<R1,R2,R3,R4,R5> collect(java.util.stream.Collector<? super T,A1,R1> collector1, java.util.stream.Collector<? super T,A2,R2> collector2, java.util.stream.Collector<? super T,A3,R3> collector3, java.util.stream.Collector<? super T,A4,R4> collector4, java.util.stream.Collector<? super T,A5,R5> collector5)
Collector
s.default <R1,R2,R3,R4,R5,R6,A1,A2,A3,A4,A5,A6> Tuple6<R1,R2,R3,R4,R5,R6> collect(java.util.stream.Collector<? super T,A1,R1> collector1, java.util.stream.Collector<? super T,A2,R2> collector2, java.util.stream.Collector<? super T,A3,R3> collector3, java.util.stream.Collector<? super T,A4,R4> collector4, java.util.stream.Collector<? super T,A5,R5> collector5, java.util.stream.Collector<? super T,A6,R6> collector6)
Collector
s.default <R1,R2,R3,R4,R5,R6,R7,A1,A2,A3,A4,A5,A6,A7> Tuple7<R1,R2,R3,R4,R5,R6,R7> collect(java.util.stream.Collector<? super T,A1,R1> collector1, java.util.stream.Collector<? super T,A2,R2> collector2, java.util.stream.Collector<? super T,A3,R3> collector3, java.util.stream.Collector<? super T,A4,R4> collector4, java.util.stream.Collector<? super T,A5,R5> collector5, java.util.stream.Collector<? super T,A6,R6> collector6, java.util.stream.Collector<? super T,A7,R7> collector7)
Collector
s.default <R1,R2,R3,R4,R5,R6,R7,R8,A1,A2,A3,A4,A5,A6,A7,A8> Tuple8<R1,R2,R3,R4,R5,R6,R7,R8> collect(java.util.stream.Collector<? super T,A1,R1> collector1, java.util.stream.Collector<? super T,A2,R2> collector2, java.util.stream.Collector<? super T,A3,R3> collector3, java.util.stream.Collector<? super T,A4,R4> collector4, java.util.stream.Collector<? super T,A5,R5> collector5, java.util.stream.Collector<? super T,A6,R6> collector6, java.util.stream.Collector<? super T,A7,R7> collector7, java.util.stream.Collector<? super T,A8,R8> collector8)
Collector
s.default <R1,R2,R3,R4,R5,R6,R7,R8,R9,A1,A2,A3,A4,A5,A6,A7,A8,A9> Tuple9<R1,R2,R3,R4,R5,R6,R7,R8,R9> collect(java.util.stream.Collector<? super T,A1,R1> collector1, java.util.stream.Collector<? super T,A2,R2> collector2, java.util.stream.Collector<? super T,A3,R3> collector3, java.util.stream.Collector<? super T,A4,R4> collector4, java.util.stream.Collector<? super T,A5,R5> collector5, java.util.stream.Collector<? super T,A6,R6> collector6, java.util.stream.Collector<? super T,A7,R7> collector7, java.util.stream.Collector<? super T,A8,R8> collector8, java.util.stream.Collector<? super T,A9,R9> collector9)
Collector
s.default <R1,R2,R3,R4,R5,R6,R7,R8,R9,R10,A1,A2,A3,A4,A5,A6,A7,A8,A9,A10> Tuple10<R1,R2,R3,R4,R5,R6,R7,R8,R9,R10> collect(java.util.stream.Collector<? super T,A1,R1> collector1, java.util.stream.Collector<? super T,A2,R2> collector2, java.util.stream.Collector<? super T,A3,R3> collector3, java.util.stream.Collector<? super T,A4,R4> collector4, java.util.stream.Collector<? super T,A5,R5> collector5, java.util.stream.Collector<? super T,A6,R6> collector6, java.util.stream.Collector<? super T,A7,R7> collector7, java.util.stream.Collector<? super T,A8,R8> collector8, java.util.stream.Collector<? super T,A9,R9> collector9, java.util.stream.Collector<? super T,A10,R10> collector10)
Collector
s.default <R1,R2,R3,R4,R5,R6,R7,R8,R9,R10,R11,A1,A2,A3,A4,A5,A6,A7,A8,A9,A10,A11> Tuple11<R1,R2,R3,R4,R5,R6,R7,R8,R9,R10,R11> collect(java.util.stream.Collector<? super T,A1,R1> collector1, java.util.stream.Collector<? super T,A2,R2> collector2, java.util.stream.Collector<? super T,A3,R3> collector3, java.util.stream.Collector<? super T,A4,R4> collector4, java.util.stream.Collector<? super T,A5,R5> collector5, java.util.stream.Collector<? super T,A6,R6> collector6, java.util.stream.Collector<? super T,A7,R7> collector7, java.util.stream.Collector<? super T,A8,R8> collector8, java.util.stream.Collector<? super T,A9,R9> collector9, java.util.stream.Collector<? super T,A10,R10> collector10, java.util.stream.Collector<? super T,A11,R11> collector11)
Collector
s.default <R1,R2,R3,R4,R5,R6,R7,R8,R9,R10,R11,R12,A1,A2,A3,A4,A5,A6,A7,A8,A9,A10,A11,A12> Tuple12<R1,R2,R3,R4,R5,R6,R7,R8,R9,R10,R11,R12> collect(java.util.stream.Collector<? super T,A1,R1> collector1, java.util.stream.Collector<? super T,A2,R2> collector2, java.util.stream.Collector<? super T,A3,R3> collector3, java.util.stream.Collector<? super T,A4,R4> collector4, java.util.stream.Collector<? super T,A5,R5> collector5, java.util.stream.Collector<? super T,A6,R6> collector6, java.util.stream.Collector<? super T,A7,R7> collector7, java.util.stream.Collector<? super T,A8,R8> collector8, java.util.stream.Collector<? super T,A9,R9> collector9, java.util.stream.Collector<? super T,A10,R10> collector10, java.util.stream.Collector<? super T,A11,R11> collector11, java.util.stream.Collector<? super T,A12,R12> collector12)
Collector
s.default <R1,R2,R3,R4,R5,R6,R7,R8,R9,R10,R11,R12,R13,A1,A2,A3,A4,A5,A6,A7,A8,A9,A10,A11,A12,A13> Tuple13<R1,R2,R3,R4,R5,R6,R7,R8,R9,R10,R11,R12,R13> collect(java.util.stream.Collector<? super T,A1,R1> collector1, java.util.stream.Collector<? super T,A2,R2> collector2, java.util.stream.Collector<? super T,A3,R3> collector3, java.util.stream.Collector<? super T,A4,R4> collector4, java.util.stream.Collector<? super T,A5,R5> collector5, java.util.stream.Collector<? super T,A6,R6> collector6, java.util.stream.Collector<? super T,A7,R7> collector7, java.util.stream.Collector<? super T,A8,R8> collector8, java.util.stream.Collector<? super T,A9,R9> collector9, java.util.stream.Collector<? super T,A10,R10> collector10, java.util.stream.Collector<? super T,A11,R11> collector11, java.util.stream.Collector<? super T,A12,R12> collector12, java.util.stream.Collector<? super T,A13,R13> collector13)
Collector
s.default <R1,R2,R3,R4,R5,R6,R7,R8,R9,R10,R11,R12,R13,R14,A1,A2,A3,A4,A5,A6,A7,A8,A9,A10,A11,A12,A13,A14> Tuple14<R1,R2,R3,R4,R5,R6,R7,R8,R9,R10,R11,R12,R13,R14> collect(java.util.stream.Collector<? super T,A1,R1> collector1, java.util.stream.Collector<? super T,A2,R2> collector2, java.util.stream.Collector<? super T,A3,R3> collector3, java.util.stream.Collector<? super T,A4,R4> collector4, java.util.stream.Collector<? super T,A5,R5> collector5, java.util.stream.Collector<? super T,A6,R6> collector6, java.util.stream.Collector<? super T,A7,R7> collector7, java.util.stream.Collector<? super T,A8,R8> collector8, java.util.stream.Collector<? super T,A9,R9> collector9, java.util.stream.Collector<? super T,A10,R10> collector10, java.util.stream.Collector<? super T,A11,R11> collector11, java.util.stream.Collector<? super T,A12,R12> collector12, java.util.stream.Collector<? super T,A13,R13> collector13, java.util.stream.Collector<? super T,A14,R14> collector14)
Collector
s.default <R1,R2,R3,R4,R5,R6,R7,R8,R9,R10,R11,R12,R13,R14,R15,A1,A2,A3,A4,A5,A6,A7,A8,A9,A10,A11,A12,A13,A14,A15> Tuple15<R1,R2,R3,R4,R5,R6,R7,R8,R9,R10,R11,R12,R13,R14,R15> collect(java.util.stream.Collector<? super T,A1,R1> collector1, java.util.stream.Collector<? super T,A2,R2> collector2, java.util.stream.Collector<? super T,A3,R3> collector3, java.util.stream.Collector<? super T,A4,R4> collector4, java.util.stream.Collector<? super T,A5,R5> collector5, java.util.stream.Collector<? super T,A6,R6> collector6, java.util.stream.Collector<? super T,A7,R7> collector7, java.util.stream.Collector<? super T,A8,R8> collector8, java.util.stream.Collector<? super T,A9,R9> collector9, java.util.stream.Collector<? super T,A10,R10> collector10, java.util.stream.Collector<? super T,A11,R11> collector11, java.util.stream.Collector<? super T,A12,R12> collector12, java.util.stream.Collector<? super T,A13,R13> collector13, java.util.stream.Collector<? super T,A14,R14> collector14, java.util.stream.Collector<? super T,A15,R15> collector15)
Collector
s.default <R1,R2,R3,R4,R5,R6,R7,R8,R9,R10,R11,R12,R13,R14,R15,R16,A1,A2,A3,A4,A5,A6,A7,A8,A9,A10,A11,A12,A13,A14,A15,A16> Tuple16<R1,R2,R3,R4,R5,R6,R7,R8,R9,R10,R11,R12,R13,R14,R15,R16> collect(java.util.stream.Collector<? super T,A1,R1> collector1, java.util.stream.Collector<? super T,A2,R2> collector2, java.util.stream.Collector<? super T,A3,R3> collector3, java.util.stream.Collector<? super T,A4,R4> collector4, java.util.stream.Collector<? super T,A5,R5> collector5, java.util.stream.Collector<? super T,A6,R6> collector6, java.util.stream.Collector<? super T,A7,R7> collector7, java.util.stream.Collector<? super T,A8,R8> collector8, java.util.stream.Collector<? super T,A9,R9> collector9, java.util.stream.Collector<? super T,A10,R10> collector10, java.util.stream.Collector<? super T,A11,R11> collector11, java.util.stream.Collector<? super T,A12,R12> collector12, java.util.stream.Collector<? super T,A13,R13> collector13, java.util.stream.Collector<? super T,A14,R14> collector14, java.util.stream.Collector<? super T,A15,R15> collector15, java.util.stream.Collector<? super T,A16,R16> collector16)
Collector
s.long count()
long count(java.util.function.Predicate<? super T> predicate)
long countDistinct()
long countDistinct(java.util.function.Predicate<? super T> predicate)
<U> long countDistinctBy(java.util.function.Function<? super T,? extends U> function)
<U> long countDistinctBy(java.util.function.Function<? super T,? extends U> function, java.util.function.Predicate<? super U> predicate)
java.util.Optional<T> mode()
<U> java.util.Optional<T> modeBy(java.util.function.Function<? super T,? extends U> function)
<U> Seq<T> modeAllBy(java.util.function.Function<? super T,? extends U> function)
java.util.Optional<T> sum()
<U> java.util.Optional<U> sum(java.util.function.Function<? super T,? extends U> function)
int sumInt(java.util.function.ToIntFunction<? super T> function)
int
.long sumLong(java.util.function.ToLongFunction<? super T> function)
long
.double sumDouble(java.util.function.ToDoubleFunction<? super T> function)
double
.java.util.Optional<T> avg()
<U> java.util.Optional<U> avg(java.util.function.Function<? super T,? extends U> function)
double avgInt(java.util.function.ToIntFunction<? super T> function)
int
.double avgLong(java.util.function.ToLongFunction<? super T> function)
long
.double avgDouble(java.util.function.ToDoubleFunction<? super T> function)
double
.java.util.Optional<T> min()
This makes the unsafe assumption that
<T extends Comparable<? super T>>
java.util.Optional<T> min(java.util.Comparator<? super T> comparator)
<U extends java.lang.Comparable<? super U>> java.util.Optional<U> min(java.util.function.Function<? super T,? extends U> function)
<U> java.util.Optional<U> min(java.util.function.Function<? super T,? extends U> function, java.util.Comparator<? super U> comparator)
<U extends java.lang.Comparable<? super U>> java.util.Optional<T> minBy(java.util.function.Function<? super T,? extends U> function)
<U> java.util.Optional<T> minBy(java.util.function.Function<? super T,? extends U> function, java.util.Comparator<? super U> comparator)
Seq<T> minAll()
This makes the unsafe assumption that
<T extends Comparable<? super T>>
Seq<T> minAll(java.util.Comparator<? super T> comparator)
<U extends java.lang.Comparable<? super U>> Seq<U> minAll(java.util.function.Function<? super T,? extends U> function)
<U> Seq<U> minAll(java.util.function.Function<? super T,? extends U> function, java.util.Comparator<? super U> comparator)
<U extends java.lang.Comparable<? super U>> Seq<T> minAllBy(java.util.function.Function<? super T,? extends U> function)
<U> Seq<T> minAllBy(java.util.function.Function<? super T,? extends U> function, java.util.Comparator<? super U> comparator)
java.util.Optional<T> max()
This makes the unsafe assumption that
<T extends Comparable<? super T>>
java.util.Optional<T> max(java.util.Comparator<? super T> comparator)
<U extends java.lang.Comparable<? super U>> java.util.Optional<U> max(java.util.function.Function<? super T,? extends U> function)
<U> java.util.Optional<U> max(java.util.function.Function<? super T,? extends U> function, java.util.Comparator<? super U> comparator)
<U extends java.lang.Comparable<? super U>> java.util.Optional<T> maxBy(java.util.function.Function<? super T,? extends U> function)
<U> java.util.Optional<T> maxBy(java.util.function.Function<? super T,? extends U> function, java.util.Comparator<? super U> comparator)
Seq<T> maxAll()
This makes the unsafe assumption that
<T extends Comparable<? super T>>
Seq<T> maxAll(java.util.Comparator<? super T> comparator)
<U extends java.lang.Comparable<? super U>> Seq<U> maxAll(java.util.function.Function<? super T,? extends U> function)
<U> Seq<U> maxAll(java.util.function.Function<? super T,? extends U> function, java.util.Comparator<? super U> comparator)
<U extends java.lang.Comparable<? super U>> Seq<T> maxAllBy(java.util.function.Function<? super T,? extends U> function)
<U> Seq<T> maxAllBy(java.util.function.Function<? super T,? extends U> function, java.util.Comparator<? super U> comparator)
java.util.Optional<T> median()
This makes the unsafe assumption that
<T extends Comparable<? super T>>
java.util.Optional<T> median(java.util.Comparator<? super T> comparator)
<U extends java.lang.Comparable<? super U>> java.util.Optional<T> medianBy(java.util.function.Function<? super T,? extends U> function)
<U> java.util.Optional<T> medianBy(java.util.function.Function<? super T,? extends U> function, java.util.Comparator<? super U> comparator)
java.util.Optional<T> percentile(double percentile)
This makes the unsafe assumption that
<T extends Comparable<? super T>>
java.util.Optional<T> percentile(double percentile, java.util.Comparator<? super T> comparator)
<U extends java.lang.Comparable<? super U>> java.util.Optional<T> percentileBy(double percentile, java.util.function.Function<? super T,? extends U> function)
<U> java.util.Optional<T> percentileBy(double percentile, java.util.function.Function<? super T,? extends U> function, java.util.Comparator<? super U> comparator)
boolean allMatch(java.util.function.Predicate<? super T> predicate)
boolean anyMatch(java.util.function.Predicate<? super T> predicate)
boolean noneMatch(java.util.function.Predicate<? super T> predicate)
java.util.Optional<T> bitAnd()
<U> java.util.Optional<U> bitAnd(java.util.function.Function<? super T,? extends U> function)
int bitAndInt(java.util.function.ToIntFunction<? super T> function)
long bitAndLong(java.util.function.ToLongFunction<? super T> function)
java.util.Optional<T> bitOr()
<U> java.util.Optional<U> bitOr(java.util.function.Function<? super T,? extends U> function)
int bitOrInt(java.util.function.ToIntFunction<? super T> function)
long bitOrLong(java.util.function.ToLongFunction<? super T> function)
java.util.List<T> toList()
ArrayList
.<L extends java.util.List<T>> L toList(java.util.function.Supplier<L> factory)
List
.java.util.List<T> toUnmodifiableList()
List
.java.util.Set<T> toSet()
LinkedHashSet
.<S extends java.util.Set<T>> S toSet(java.util.function.Supplier<S> factory)
Set
.java.util.Set<T> toUnmodifiableSet()
Set
.<C extends java.util.Collection<T>> C toCollection(java.util.function.Supplier<C> factory)
Collection
.<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)
Map
.<K> java.util.Map<K,T> toMap(java.util.function.Function<? super T,? extends K> keyMapper)
Map
with the given keys and the self element as value.java.lang.String toString(java.lang.CharSequence delimiter)
java.lang.String toString(java.lang.CharSequence delimiter, java.lang.CharSequence prefix, java.lang.CharSequence suffix)
Stream.collect(Collector)
with a
Collectors.joining(CharSequence, CharSequence, CharSequence)
collector.java.lang.String commonPrefix()
java.lang.String commonSuffix()
Copyright © 2018. All rights reserved.