- AbstractStreamEx<T,S extends AbstractStreamEx<T,S>> - Class in one.util.streamex
-
- accumulator() - Method in interface DoubleCollector
-
A function that folds a value into a mutable result container.
- accumulator() - Method in interface IntCollector
-
A function that folds a value into a mutable result container.
- accumulator() - Method in class Joining
-
- accumulator() - Method in interface LongCollector
-
A function that folds a value into a mutable result container.
- allMatch(Predicate<? super T>) - Method in class AbstractStreamEx
-
- allMatch(DoublePredicate) - Method in class DoubleStreamEx
-
- allMatch(IntPredicate) - Method in class IntStreamEx
-
- allMatch(LongPredicate) - Method in class LongStreamEx
-
- andingInt(ToIntFunction<T>) - Static method in class MoreCollectors
-
Returns a Collector which performs the bitwise-and operation of a
integer-valued function applied to the input elements.
- andingLong(ToLongFunction<T>) - Static method in class MoreCollectors
-
Returns a Collector which performs the bitwise-and operation of a
long-valued function applied to the input elements.
- andThen(Function<R, RR>) - Method in interface DoubleCollector
-
Adapts this collector to perform an additional finishing transformation.
- andThen(Function<R, RR>) - Method in interface IntCollector
-
Adapts this collector to perform an additional finishing transformation.
- andThen(Function<R, RR>) - Method in interface LongCollector
-
Adapts this collector to perform an additional finishing transformation.
- anyMatch(Predicate<? super T>) - Method in class AbstractStreamEx
-
- anyMatch(DoublePredicate) - Method in class DoubleStreamEx
-
- anyMatch(IntPredicate) - Method in class IntStreamEx
-
- anyMatch(LongPredicate) - Method in class LongStreamEx
-
- append(Stream<? extends T>) - Method in class AbstractStreamEx
-
Creates a lazily concatenated stream whose elements are all the elements
of this stream followed by all the elements of the other stream.
- append(double...) - Method in class DoubleStreamEx
-
Returns a new
DoubleStreamEx which is a concatenation of this
stream and the stream containing supplied values
This is a
quasi-intermediate
operation.
- append(DoubleStream) - Method in class DoubleStreamEx
-
Creates a lazily concatenated stream whose elements are all the elements
of this stream followed by all the elements of the other stream.
- append(Map<K, V>) - Method in class EntryStream
-
Returns a new EntryStream which is a concatenation of this stream
and the stream created from the supplied map entries.
- append(K, V) - Method in class EntryStream
-
Returns a new EntryStream which is a concatenation of this stream
and the supplied key-value pair.
- append(K, V, K, V) - Method in class EntryStream
-
Returns a new EntryStream which is a concatenation of this stream
and two supplied key-value pairs.
- append(K, V, K, V, K, V) - Method in class EntryStream
-
Returns a new EntryStream which is a concatenation of this stream
and three supplied key-value pairs.
- append(int...) - Method in class IntStreamEx
-
Returns a new
IntStreamEx which is a concatenation of this stream
and the stream containing supplied values
This is a
quasi-intermediate
operation.
- append(IntStream) - Method in class IntStreamEx
-
Creates a lazily concatenated stream whose elements are all the elements
of this stream followed by all the elements of the other stream.
- append(long...) - Method in class LongStreamEx
-
Returns a new
LongStreamEx which is a concatenation of this
stream and the stream containing supplied values
This is a
quasi-intermediate
operation.
- append(LongStream) - Method in class LongStreamEx
-
Creates a lazily concatenated stream whose elements are all the elements
of this stream followed by all the elements of the other stream.
- append(T...) - Method in class StreamEx
-
Returns a new StreamEx which is a concatenation of this stream
and the supplied values.
- append(T) - Method in class StreamEx
-
Returns a new StreamEx which is a concatenation of this stream
and the supplied value.
- append(Collection<? extends T>) - Method in class StreamEx
-
Returns a new StreamEx which is a concatenation of this stream
and the stream created from supplied collection.
- asByteInputStream() - Method in class IntStreamEx
-
Returns an InputStream lazily populated from the current
IntStreamEx.
- asDoubleStream() - Method in class IntStreamEx
-
- asDoubleStream() - Method in class LongStreamEx
-
- asLongStream() - Method in class IntStreamEx
-
- atLeast(double) - Method in class DoubleStreamEx
-
Returns a stream consisting of the elements of this stream that greater
than or equal to the specified value.
- atLeast(int) - Method in class IntStreamEx
-
Returns a stream consisting of the elements of this stream that greater
than or equal to the specified value.
- atLeast(long) - Method in class LongStreamEx
-
Returns a stream consisting of the elements of this stream that greater
than or equal to the specified value.
- atMost(double) - Method in class DoubleStreamEx
-
Returns a stream consisting of the elements of this stream that less than
or equal to the specified value.
- atMost(int) - Method in class IntStreamEx
-
Returns a stream consisting of the elements of this stream that less than
or equal to the specified value.
- atMost(long) - Method in class LongStreamEx
-
Returns a stream consisting of the elements of this stream that less than
or equal to the specified value.
- average() - Method in class DoubleStreamEx
-
- average() - Method in class IntStreamEx
-
- average() - Method in class LongStreamEx
-
- averaging() - Static method in interface DoubleCollector
-
Returns a DoubleCollector that produces the arithmetic mean of
the input elements or an empty optional if no elements are collected.
- averaging() - Static method in interface IntCollector
-
Returns an IntCollector that produces the arithmetic mean of the
input elements or an empty optional if no elements are collected.
- averaging() - Static method in interface LongCollector
-
Returns a LongCollector that produces the arithmetic mean of the
input elements or an empty optional if no elements are collected.
- cartesianPower(int, Collection<T>) - Static method in class StreamEx
-
Returns a new
StreamEx which elements are
List objects
containing all possible n-tuples of the elements of supplied collection.
- cartesianPower(int, Collection<T>, U, BiFunction<U, ? super T, U>) - Static method in class StreamEx
-
Returns a new StreamEx which elements are results of reduction of
all possible n-tuples composed from the elements of supplied collections.
- cartesianProduct(Collection<? extends Collection<T>>) - Static method in class StreamEx
-
Returns a new
StreamEx which elements are
List objects
containing all possible tuples of the elements of supplied collection of
collections.
- cartesianProduct(Collection<? extends Collection<T>>, U, BiFunction<U, ? super T, U>) - Static method in class StreamEx
-
Returns a new StreamEx which elements are results of reduction of
all possible tuples composed from the elements of supplied collection of
collections.
- chain(Function<? super S, U>) - Method in class AbstractStreamEx
-
- chain(Function<? super DoubleStreamEx, U>) - Method in class DoubleStreamEx
-
- chain(Function<? super IntStreamEx, U>) - Method in class IntStreamEx
-
- chain(Function<? super LongStreamEx, U>) - Method in class LongStreamEx
-
- characteristics() - Method in class Joining
-
- charsToString() - Method in class IntStreamEx
-
Returns a
String consisting of chars from this stream.
- codePointsToString() - Method in class IntStreamEx
-
Returns a
String consisting of code points from this stream.
- collapse(BiPredicate<? super T, ? super T>, BinaryOperator<T>) - Method in class StreamEx
-
Merge series of adjacent elements which satisfy the given predicate using
the merger function and return a new stream.
- collapse(BiPredicate<? super T, ? super T>, Collector<? super T, A, R>) - Method in class StreamEx
-
Perform a partial mutable reduction using the supplied
Collector
on a series of adjacent elements.
- collapse(BiPredicate<? super T, ? super T>) - Method in class StreamEx
-
Returns a stream consisting of elements of this stream where every series
of elements matched the predicate is replaced with first element from the
series.
- collapseKeys() - Method in class EntryStream
-
Merge series of adjacent stream entries with equal keys grouping the
corresponding values into List.
- collapseKeys(BinaryOperator<V>) - Method in class EntryStream
-
Merge series of adjacent stream entries with equal keys combining the
corresponding values using the provided function.
- collapseKeys(Collector<? super V, A, R>) - Method in class EntryStream
-
Merge series of adjacent stream entries with equal keys combining the
corresponding values using the provided Collector.
- collect(Supplier<R>, BiConsumer<R, ? super T>, BiConsumer<R, R>) - Method in class AbstractStreamEx
-
- collect(Collector<? super T, A, R>) - Method in class AbstractStreamEx
-
Performs a
mutable
reduction operation on the elements of this stream using a
Collector.
- collect(Supplier<R>, ObjDoubleConsumer<R>, BiConsumer<R, R>) - Method in class DoubleStreamEx
-
- collect(DoubleCollector<A, R>) - Method in class DoubleStreamEx
-
Performs a mutable reduction operation on the elements of this stream
using an
DoubleCollector which encapsulates the supplier,
accumulator and merger functions making easier to reuse collection
strategies.
- collect(Supplier<R>, ObjIntConsumer<R>, BiConsumer<R, R>) - Method in class IntStreamEx
-
- collect(IntCollector<A, R>) - Method in class IntStreamEx
-
Performs a mutable reduction operation on the elements of this stream
using an
IntCollector which encapsulates the supplier,
accumulator and merger functions making easier to reuse collection
strategies.
- collect(Supplier<R>, ObjLongConsumer<R>, BiConsumer<R, R>) - Method in class LongStreamEx
-
- collect(LongCollector<A, R>) - Method in class LongStreamEx
-
Performs a mutable reduction operation on the elements of this stream
using an
LongCollector which encapsulates the supplier,
accumulator and merger functions making easier to reuse collection
strategies.
- collectingAndThen(Collector<T, A, R>, Function<R, RR>) - Static method in class MoreCollectors
-
Adapts a Collector to perform an additional finishing
transformation.
- combiner() - Method in class Joining
-
- commonPrefix() - Static method in class MoreCollectors
-
Returns a Collector which computes a common prefix of input
CharSequence objects returning the result as String.
- commonSuffix() - Static method in class MoreCollectors
-
Returns a Collector which computes a common suffix of input
CharSequence objects returning the result as String.
- constant(double, long) - Static method in class DoubleStreamEx
-
Returns a sequential unordered DoubleStreamEx of given length
which elements are equal to supplied value.
- constant(int, long) - Static method in class IntStreamEx
-
Returns a sequential unordered IntStreamEx of given length which
elements are equal to supplied value.
- constant(long, long) - Static method in class LongStreamEx
-
Returns a sequential unordered LongStreamEx of given length which
elements are equal to supplied value.
- constant(T, long) - Static method in class StreamEx
-
Returns a sequential unordered StreamEx of given length which
elements are equal to supplied value.
- count() - Method in class AbstractStreamEx
-
- count() - Method in class DoubleStreamEx
-
- count() - Method in class IntStreamEx
-
- count() - Method in class LongStreamEx
-
- counting() - Static method in interface DoubleCollector
-
Returns a DoubleCollector that counts the number of input
elements and returns the result as Long.
- counting() - Static method in interface IntCollector
-
Returns an IntCollector that counts the number of input elements
and returns the result as Long.
- counting() - Static method in interface LongCollector
-
Returns a LongCollector that counts the number of input elements
and returns the result as Long.
- countingInt() - Static method in interface DoubleCollector
-
Returns an DoubleCollector that counts the number of input
elements and returns the result as Integer.
- countingInt() - Static method in interface IntCollector
-
Returns an IntCollector that counts the number of input elements
and returns the result as Integer.
- countingInt() - Static method in interface LongCollector
-
Returns an LongCollector that counts the number of input elements
and returns the result as Integer.
- countingInt() - Static method in class MoreCollectors
-
Returns a Collector accepting elements of type T that
counts the number of input elements and returns result as Integer
.
- cross(V...) - Method in class StreamEx
-
Performs a cross product of current stream with specified array of
elements.
- cross(Collection<? extends V>) - Method in class StreamEx
-
Performs a cross product of current stream with specified
Collection of elements.
- cross(Function<? super T, ? extends Stream<? extends V>>) - Method in class StreamEx
-
Creates a new EntryStream whose keys are elements of current
stream and corresponding values are supplied by given function.
- cutAfterDelimiter() - Method in class Joining
-
Returns a Collector which behaves like this collector, but cuts
the resulting string after the delimiter when limit is reached.
- cutAnywhere() - Method in class Joining
-
Returns a Collector which behaves like this collector, but cuts
the resulting string at any point when limit is reached.
- cutAtCodePoint() - Method in class Joining
-
Returns a Collector which behaves like this collector, but cuts
the resulting string between any code points when limit is reached.
- cutAtGrapheme() - Method in class Joining
-
Returns a Collector which behaves like this collector, but cuts
the resulting string at grapheme cluster boundary when limit is reached.
- cutAtWord() - Method in class Joining
-
Returns a Collector which behaves like this collector, but cuts
the resulting string at word boundary when limit is reached.
- cutBeforeDelimiter() - Method in class Joining
-
Returns a Collector which behaves like this collector, but cuts
the resulting string before the delimiter when limit is reached.
- filter(Predicate<? super T>) - Method in class AbstractStreamEx
-
- filter(DoublePredicate) - Method in class DoubleStreamEx
-
- filter(IntPredicate) - Method in class IntStreamEx
-
- filter(LongPredicate) - Method in class LongStreamEx
-
- filterBy(Function<? super T, ? extends K>, K) - Method in class StreamEx
-
Returns a stream consisting of the elements of this stream for which the
supplied mapper function returns the given value.
- filtering(Predicate<? super T>, Collector<T, A, R>) - Static method in class MoreCollectors
-
Returns a Collector which passes only those elements to the
specified downstream collector which match given predicate.
- filtering(Predicate<? super T>) - Static method in class MoreCollectors
-
Returns a Collector which filters input elements by the supplied
predicate, collecting them to the list.
- filterKeys(Predicate<? super K>) - Method in class EntryStream
-
Returns a stream consisting of the elements of this stream which keys
match the given predicate.
- filterKeyValue(BiPredicate<? super K, ? super V>) - Method in class EntryStream
-
Returns a stream consisting of the elements of this stream which elements
match the given predicate.
- filterValues(Predicate<? super V>) - Method in class EntryStream
-
Returns a stream consisting of the elements of this stream which values
match the given predicate.
- findAny() - Method in class AbstractStreamEx
-
- findAny(Predicate<? super T>) - Method in class AbstractStreamEx
-
Returns an
Optional describing some element of the stream, which
matches given predicate, or an empty
Optional if there's no
matching element.
- findAny() - Method in class DoubleStreamEx
-
- findAny(DoublePredicate) - Method in class DoubleStreamEx
-
Returns an
OptionalDouble describing some element of the stream,
which matches given predicate, or an empty
OptionalDouble if
there's no matching element.
- findAny() - Method in class IntStreamEx
-
- findAny(IntPredicate) - Method in class IntStreamEx
-
Returns an
OptionalInt describing some element of the stream,
which matches given predicate, or an empty
OptionalInt if there's
no matching element.
- findAny() - Method in class LongStreamEx
-
- findAny(LongPredicate) - Method in class LongStreamEx
-
Returns an
OptionalLong describing some element of the stream,
which matches given predicate, or an empty
OptionalLong if
there's no matching element.
- findFirst() - Method in class AbstractStreamEx
-
- findFirst(Predicate<? super T>) - Method in class AbstractStreamEx
-
Returns an
Optional describing the first element of this stream,
which matches given predicate, or an empty
Optional if there's no
matching element.
- findFirst() - Method in class DoubleStreamEx
-
- findFirst(DoublePredicate) - Method in class DoubleStreamEx
-
Returns an
OptionalDouble describing the first element of this
stream, which matches given predicate, or an empty
OptionalDouble
if there's no matching element.
- findFirst() - Method in class IntStreamEx
-
- findFirst(IntPredicate) - Method in class IntStreamEx
-
Returns an
OptionalInt describing the first element of this
stream, which matches given predicate, or an empty
OptionalInt if
there's no matching element.
- findFirst() - Method in class LongStreamEx
-
- findFirst(LongPredicate) - Method in class LongStreamEx
-
Returns an
OptionalLong describing the first element of this
stream, which matches given predicate, or an empty
OptionalLong
if there's no matching element.
- finisher() - Method in class Joining
-
- first() - Static method in class MoreCollectors
-
Returns a Collector which collects only the first stream element
if any.
- flatArray(Function<? super T, ? extends R[]>) - Method in class AbstractStreamEx
-
Returns a stream consisting of the results of replacing each element of
this stream with the contents of a mapped array produced by applying
the provided mapping function to each element.
- flatCollection(Function<? super T, ? extends Collection<? extends R>>) - Method in class AbstractStreamEx
-
Returns a stream consisting of the results of replacing each element of
this stream with the contents of a mapped collection produced by applying
the provided mapping function to each element.
- flatMap(Function<? super T, ? extends Stream<? extends R>>) - Method in class AbstractStreamEx
-
- flatMap(DoubleFunction<? extends DoubleStream>) - Method in class DoubleStreamEx
-
- flatMap(IntFunction<? extends IntStream>) - Method in class IntStreamEx
-
- flatMap(LongFunction<? extends LongStream>) - Method in class LongStreamEx
-
- flatMapKeys(Function<? super K, ? extends Stream<? extends KK>>) - Method in class EntryStream
-
Returns an EntryStream consisting of the entries whose keys are
results of replacing source keys with the contents of a mapped stream
produced by applying the provided mapping function to each source key and
values are left intact.
- flatMapKeyValue(BiFunction<? super K, ? super V, ? extends Stream<? extends R>>) - Method in class EntryStream
-
Returns a stream consisting of the results of replacing each element of
this stream with the contents of a mapped stream produced by applying the
provided mapping function to each key-value pair.
- flatMapping(Function<? super T, ? extends Stream<? extends U>>, Collector<? super U, A, R>) - Static method in class MoreCollectors
-
Adapts a Collector accepting elements of type U to one
accepting elements of type T by applying a flat mapping function
to each input element before accumulation.
- flatMapping(Function<? super T, ? extends Stream<? extends U>>) - Static method in class MoreCollectors
-
Returns a collector which launches a flat mapping function for each input
element and collects the elements of the resulting streams to the flat
List.
- flatMapToDouble(Function<? super T, ? extends DoubleStream>) - Method in class AbstractStreamEx
-
- flatMapToDouble(IntFunction<? extends DoubleStream>) - Method in class IntStreamEx
-
Returns a
DoubleStreamEx consisting of the results of replacing
each element of this stream with the contents of a mapped stream produced
by applying the provided mapping function to each element.
- flatMapToDouble(LongFunction<? extends DoubleStream>) - Method in class LongStreamEx
-
Returns a
DoubleStreamEx consisting of the results of replacing
each element of this stream with the contents of a mapped stream produced
by applying the provided mapping function to each element.
- flatMapToEntry(Function<? super T, ? extends Map<K, V>>) - Method in class StreamEx
-
Creates a new EntryStream populated from entries of maps produced
by supplied mapper function which is applied to the every element of this
stream.
- flatMapToInt(Function<? super T, ? extends IntStream>) - Method in class AbstractStreamEx
-
- flatMapToInt(DoubleFunction<? extends IntStream>) - Method in class DoubleStreamEx
-
Returns an
IntStreamEx consisting of the results of replacing
each element of this stream with the contents of a mapped stream produced
by applying the provided mapping function to each element.
- flatMapToInt(LongFunction<? extends IntStream>) - Method in class LongStreamEx
-
Returns an
IntStreamEx consisting of the results of replacing
each element of this stream with the contents of a mapped stream produced
by applying the provided mapping function to each element.
- flatMapToKey(BiFunction<? super K, ? super V, ? extends Stream<? extends KK>>) - Method in class EntryStream
-
Returns an EntryStream consisting of the entries whose keys are
results of replacing source keys with the contents of a mapped stream
produced by applying the provided mapping function and values are left
intact.
- flatMapToLong(Function<? super T, ? extends LongStream>) - Method in class AbstractStreamEx
-
- flatMapToLong(DoubleFunction<? extends LongStream>) - Method in class DoubleStreamEx
-
Returns a
LongStreamEx consisting of the results of replacing
each element of this stream with the contents of a mapped stream produced
by applying the provided mapping function to each element.
- flatMapToLong(IntFunction<? extends LongStream>) - Method in class IntStreamEx
-
Returns a
LongStreamEx consisting of the results of replacing
each element of this stream with the contents of a mapped stream produced
by applying the provided mapping function to each element.
- flatMapToObj(DoubleFunction<? extends Stream<R>>) - Method in class DoubleStreamEx
-
Returns a
StreamEx consisting of the results of replacing each
element of this stream with the contents of a mapped stream produced by
applying the provided mapping function to each element.
- flatMapToObj(IntFunction<? extends Stream<R>>) - Method in class IntStreamEx
-
Returns a
StreamEx consisting of the results of replacing each
element of this stream with the contents of a mapped stream produced by
applying the provided mapping function to each element.
- flatMapToObj(LongFunction<? extends Stream<R>>) - Method in class LongStreamEx
-
Returns a
StreamEx consisting of the results of replacing each
element of this stream with the contents of a mapped stream produced by
applying the provided mapping function to each element.
- flatMapToValue(BiFunction<? super K, ? super V, ? extends Stream<? extends VV>>) - Method in class EntryStream
-
Returns an EntryStream consisting of the entries whose values are
results of replacing source values with the contents of a mapped stream
produced by applying the provided mapping function and keys are left
intact.
- flatMapValues(Function<? super V, ? extends Stream<? extends VV>>) - Method in class EntryStream
-
Returns an EntryStream consisting of the entries whose values are
results of replacing source values with the contents of a mapped stream
produced by applying the provided mapping function to each source value
and keys are left intact.
- foldLeft(U, BiFunction<U, ? super T, U>) - Method in class AbstractStreamEx
-
Folds the elements of this stream using the provided seed object and
accumulation function, going left to right.
- foldLeft(BinaryOperator<T>) - Method in class AbstractStreamEx
-
Folds the elements of this stream using the provided accumulation
function, going left to right.
- foldLeft(DoubleBinaryOperator) - Method in class DoubleStreamEx
-
Folds the elements of this stream using the provided accumulation
function, going left to right.
- foldLeft(double, DoubleBinaryOperator) - Method in class DoubleStreamEx
-
Folds the elements of this stream using the provided seed object and
accumulation function, going left to right.
- foldLeft(IntBinaryOperator) - Method in class IntStreamEx
-
Folds the elements of this stream using the provided accumulation
function, going left to right.
- foldLeft(int, IntBinaryOperator) - Method in class IntStreamEx
-
Folds the elements of this stream using the provided seed object and
accumulation function, going left to right.
- foldLeft(LongBinaryOperator) - Method in class LongStreamEx
-
Folds the elements of this stream using the provided accumulation
function, going left to right.
- foldLeft(long, LongBinaryOperator) - Method in class LongStreamEx
-
Folds the elements of this stream using the provided seed object and
accumulation function, going left to right.
- foldRight(U, BiFunction<? super T, U, U>) - Method in class AbstractStreamEx
-
Folds the elements of this stream using the provided seed object and
accumulation function, going right to left.
- foldRight(BinaryOperator<T>) - Method in class AbstractStreamEx
-
Folds the elements of this stream using the provided accumulation
function, going right to left.
- forEach(Consumer<? super T>) - Method in class AbstractStreamEx
-
- forEach(DoubleConsumer) - Method in class DoubleStreamEx
-
- forEach(IntConsumer) - Method in class IntStreamEx
-
- forEach(LongConsumer) - Method in class LongStreamEx
-
- forEachOrdered(Consumer<? super T>) - Method in class AbstractStreamEx
-
- forEachOrdered(DoubleConsumer) - Method in class DoubleStreamEx
-
- forEachOrdered(IntConsumer) - Method in class IntStreamEx
-
- forEachOrdered(LongConsumer) - Method in class LongStreamEx
-
- forKeyValue(BiConsumer<? super K, ? super V>) - Method in class EntryStream
-
Performs an action for each key-value pair of this stream.
- forPairs(BiConsumer<? super T, ? super T>) - Method in class StreamEx
-
Performs an action for each adjacent pair of elements of this stream.
- generate(DoubleSupplier) - Static method in class DoubleStreamEx
-
Returns an infinite sequential unordered stream where each element is
generated by the provided DoubleSupplier.
- generate(IntSupplier) - Static method in class IntStreamEx
-
Returns an infinite sequential unordered stream where each element is
generated by the provided IntSupplier.
- generate(LongSupplier) - Static method in class LongStreamEx
-
Returns an infinite sequential unordered stream where each element is
generated by the provided LongSupplier.
- generate(Supplier<T>) - Static method in class StreamEx
-
Returns an infinite sequential unordered
StreamEx where each
element is generated by the provided
Supplier.
- greater(double) - Method in class DoubleStreamEx
-
Returns a stream consisting of the elements of this stream that strictly
greater than the specified value.
- greater(int) - Method in class IntStreamEx
-
Returns a stream consisting of the elements of this stream that strictly
greater than the specified value.
- greater(long) - Method in class LongStreamEx
-
Returns a stream consisting of the elements of this stream that strictly
greater than the specified value.
- greatest(Comparator<? super T>, int) - Static method in class MoreCollectors
-
Returns a
Collector which collects at most specified number of
the greatest stream elements according to the specified
Comparator into the
List.
- greatest(int) - Static method in class MoreCollectors
-
Returns a
Collector which collects at most specified number of
the greatest stream elements according to the natural order into the
List.
- grouping() - Method in class EntryStream
-
Returns a
Map where elements of this stream with the same key are
grouped together.
- grouping(Supplier<M>) - Method in class EntryStream
-
Returns a
Map where elements of this stream with the same key are
grouped together.
- grouping(Collector<? super V, A, D>) - Method in class EntryStream
-
Returns a
Map where elements of this stream with the same key are
grouped together.
- grouping(Supplier<M>, Collector<? super V, A, D>) - Method in class EntryStream
-
Returns a
Map where elements of this stream with the same key are
grouped together.
- groupingBy(DoubleFunction<? extends K>) - Static method in interface DoubleCollector
-
Returns a DoubleCollector implementing a "group by" operation on
input numbers, grouping them according to a classification function, and
returning the results in a Map.
- groupingBy(DoubleFunction<? extends K>, DoubleCollector<A, D>) - Static method in interface DoubleCollector
-
Returns a DoubleCollector implementing a cascaded "group by"
operation on input numbers, grouping them according to a classification
function, and then performing a reduction operation on the values
associated with a given key using the specified downstream
IntCollector.
- groupingBy(DoubleFunction<? extends K>, Supplier<M>, DoubleCollector<A, D>) - Static method in interface DoubleCollector
-
Returns a DoubleCollector implementing a cascaded "group by"
operation on input numbers, grouping them according to a classification
function, and then performing a reduction operation on the values
associated with a given key using the specified downstream
IntCollector.
- groupingBy(IntFunction<? extends K>) - Static method in interface IntCollector
-
Returns an IntCollector implementing a "group by" operation on
input numbers, grouping them according to a classification function, and
returning the results in a Map.
- groupingBy(IntFunction<? extends K>, IntCollector<A, D>) - Static method in interface IntCollector
-
Returns an IntCollector implementing a cascaded "group by"
operation on input numbers, grouping them according to a classification
function, and then performing a reduction operation on the values
associated with a given key using the specified downstream
IntCollector.
- groupingBy(IntFunction<? extends K>, Supplier<M>, IntCollector<A, D>) - Static method in interface IntCollector
-
Returns an IntCollector implementing a cascaded "group by"
operation on input numbers, grouping them according to a classification
function, and then performing a reduction operation on the values
associated with a given key using the specified downstream
IntCollector.
- groupingBy(LongFunction<? extends K>) - Static method in interface LongCollector
-
Returns a LongCollector implementing a "group by" operation on
input numbers, grouping them according to a classification function, and
returning the results in a Map.
- groupingBy(LongFunction<? extends K>, LongCollector<A, D>) - Static method in interface LongCollector
-
Returns a LongCollector implementing a cascaded "group by"
operation on input numbers, grouping them according to a classification
function, and then performing a reduction operation on the values
associated with a given key using the specified downstream
IntCollector.
- groupingBy(LongFunction<? extends K>, Supplier<M>, LongCollector<A, D>) - Static method in interface LongCollector
-
Returns a LongCollector implementing a cascaded "group by"
operation on input numbers, grouping them according to a classification
function, and then performing a reduction operation on the values
associated with a given key using the specified downstream
IntCollector.
- groupingBy(Function<? super T, ? extends K>, Set<K>, Collector<? super T, A, D>) - Static method in class MoreCollectors
-
Returns a Collector implementing a cascaded "group by" operation
on input elements of type T, grouping elements according to a
classification function, and then performing a reduction operation on the
values associated with a given key using the specified downstream
Collector.
- groupingBy(Function<? super T, ? extends K>, Set<K>, Supplier<M>, Collector<? super T, A, D>) - Static method in class MoreCollectors
-
Returns a Collector implementing a cascaded "group by" operation
on input elements of type T, grouping elements according to a
classification function, and then performing a reduction operation on the
values associated with a given key using the specified downstream
Collector.
- groupingBy(Function<? super T, ? extends K>) - Method in class StreamEx
-
Returns a Map whose keys are the values resulting from applying
the classification function to the input elements, and whose
corresponding values are Lists containing the input elements
which map to the associated key under the classification function.
- groupingBy(Function<? super T, ? extends K>, Collector<? super T, ?, D>) - Method in class StreamEx
-
Returns a Map whose keys are the values resulting from applying
the classification function to the input elements, and whose
corresponding values are the result of reduction of the input elements
which map to the associated key under the classification function.
- groupingBy(Function<? super T, ? extends K>, Supplier<M>, Collector<? super T, ?, D>) - Method in class StreamEx
-
Returns a Map whose keys are the values resulting from applying
the classification function to the input elements, and whose
corresponding values are the result of reduction of the input elements
which map to the associated key under the classification function.
- groupingByEnum(Class<K>, Function<? super T, K>, Collector<? super T, A, D>) - Static method in class MoreCollectors
-
Returns a Collector implementing a cascaded "group by" operation
on input elements of type T, for classification function which
maps input elements to the enum values.
- groupingTo(Supplier<C>) - Method in class EntryStream
-
Returns a
Map where elements of this stream with the same key are
grouped together.
- groupingTo(Supplier<M>, Supplier<C>) - Method in class EntryStream
-
Returns a
Map where elements of this stream with the same key are
grouped together.
- groupingTo(Function<? super T, ? extends K>, Supplier<C>) - Method in class StreamEx
-
Returns a Map whose keys are the values resulting from applying
the classification function to the input elements, and whose
corresponding values are the collections of the input elements which map
to the associated key under the classification function.
- groupingTo(Function<? super T, ? extends K>, Supplier<M>, Supplier<C>) - Method in class StreamEx
-
Returns a Map whose keys are the values resulting from applying
the classification function to the input elements, and whose
corresponding values are the collections of the input elements which map
to the associated key under the classification function.
- groupRuns(BiPredicate<? super T, ? super T>) - Method in class StreamEx
-
Returns a stream consisting of lists of elements of this stream where
adjacent elements are grouped according to supplied predicate.
- ifAllMatch(Predicate<T>, Collector<T, A, R>) - Static method in class MoreCollectors
-
Returns a Collector which performs downstream reduction if all
elements satisfy the Predicate.
- indexOf(T) - Method in class AbstractStreamEx
-
Returns an
OptionalLong describing the zero-based index of the
first element of this stream, which equals to the given element, or an
empty
OptionalLong if there's no matching element.
- indexOf(Predicate<? super T>) - Method in class AbstractStreamEx
-
Returns an
OptionalLong describing the zero-based index of the
first element of this stream, which matches given predicate, or an empty
OptionalLong if there's no matching element.
- indexOf(DoublePredicate) - Method in class DoubleStreamEx
-
Returns an
OptionalLong describing the zero-based index of the
first element of this stream, which matches given predicate, or an empty
OptionalLong if there's no matching element.
- indexOf(int) - Method in class IntStreamEx
-
Returns an
OptionalLong describing the zero-based index of the
first element of this stream, which equals to the given value, or an
empty
OptionalLong if there's no matching element.
- indexOf(IntPredicate) - Method in class IntStreamEx
-
Returns an
OptionalLong describing the zero-based index of the
first element of this stream, which matches given predicate, or an empty
OptionalLong if there's no matching element.
- indexOf(long) - Method in class LongStreamEx
-
Returns an
OptionalLong describing the zero-based index of the
first element of this stream, which equals to the given value, or an
empty
OptionalLong if there's no matching element.
- indexOf(LongPredicate) - Method in class LongStreamEx
-
Returns an
OptionalLong describing the zero-based index of the
first element of this stream, which matches given predicate, or an empty
OptionalLong if there's no matching element.
- intAccumulator() - Method in interface IntCollector
-
A function that folds a value into a mutable result container.
- IntCollector<A,R> - Interface in one.util.streamex
-
A
Collector specialized to work with primitive
int.
- intersecting() - Static method in class MoreCollectors
-
Returns a
Collector which collects the intersection of the input
collections into the newly-created
Set.
- intervalMap(BiPredicate<? super T, ? super T>, BiFunction<? super T, ? super T, ? extends U>) - Method in class StreamEx
-
Returns a stream consisting of results of applying the given function to
the intervals created from the source elements.
- into(M) - Method in class EntryStream
-
Drains the stream content into the supplied Map.
- into(C) - Method in class StreamEx
-
Drains the stream content into the supplied collection.
- ints() - Static method in class IntStreamEx
-
Returns a sequential ordered IntStreamEx from 0 (inclusive) to
Integer.MAX_VALUE (exclusive) by an incremental step of 1
.
- IntStreamEx - Class in one.util.streamex
-
An
IntStream implementation with additional functionality
- IntStreamEx.IntEmitter - Interface in one.util.streamex
-
A helper interface to build a new stream by emitting elements and
creating new emitters in a chain.
- invert() - Method in class EntryStream
-
Returns a stream consisting of the
Map.Entry objects which keys are
the values of this stream elements and vice versa.
- iterate(double, DoubleUnaryOperator) - Static method in class DoubleStreamEx
-
Returns an infinite sequential ordered DoubleStreamEx produced by
iterative application of a function f to an initial element
seed, producing a stream consisting of seed,
f(seed), f(f(seed)), etc.
- iterate(double, DoublePredicate, DoubleUnaryOperator) - Static method in class DoubleStreamEx
-
Returns a sequential ordered DoubleStreamEx produced by iterative
application of a function to an initial element, conditioned on
satisfying the supplied predicate.
- iterate(int, IntUnaryOperator) - Static method in class IntStreamEx
-
Returns an infinite sequential ordered IntStreamEx produced by
iterative application of a function f to an initial element
seed, producing a stream consisting of seed,
f(seed), f(f(seed)), etc.
- iterate(int, IntPredicate, IntUnaryOperator) - Static method in class IntStreamEx
-
Returns a sequential ordered IntStreamEx produced by iterative
application of a function to an initial element, conditioned on
satisfying the supplied predicate.
- iterate(long, LongUnaryOperator) - Static method in class LongStreamEx
-
Returns an infinite sequential ordered LongStreamEx produced by
iterative application of a function f to an initial element
seed, producing a stream consisting of seed,
f(seed), f(f(seed)), etc.
- iterate(long, LongPredicate, LongUnaryOperator) - Static method in class LongStreamEx
-
Returns a sequential ordered LongStreamEx produced by iterative
application of a function to an initial element, conditioned on
satisfying the supplied predicate.
- iterate(T, UnaryOperator<T>) - Static method in class StreamEx
-
Returns an infinite sequential ordered StreamEx produced by
iterative application of a function f to an initial element
seed, producing a StreamEx consisting of seed,
f(seed), f(f(seed)), etc.
- iterate(T, Predicate<? super T>, UnaryOperator<T>) - Static method in class StreamEx
-
Returns a sequential ordered StreamEx produced by iterative
application of a function to an initial element, conditioned on
satisfying the supplied predicate.
- iterator() - Method in class AbstractStreamEx
-
- iterator() - Method in class DoubleStreamEx
-
- iterator() - Method in class IntStreamEx
-
- iterator() - Method in class LongStreamEx
-
- map(Function<? super T, ? extends R>) - Method in class AbstractStreamEx
-
- map(DoubleUnaryOperator) - Method in class DoubleStreamEx
-
- map(IntUnaryOperator) - Method in class IntStreamEx
-
- map(LongUnaryOperator) - Method in class LongStreamEx
-
- mapFirst(DoubleUnaryOperator) - Method in class DoubleStreamEx
-
Returns a stream where the first element is the replaced with the result
of applying the given function while the other elements are left intact.
- mapFirst(IntUnaryOperator) - Method in class IntStreamEx
-
Returns a stream where the first element is the replaced with the result
of applying the given function while the other elements are left intact.
- mapFirst(LongUnaryOperator) - Method in class LongStreamEx
-
Returns a stream where the first element is the replaced with the result
of applying the given function while the other elements are left intact.
- mapFirst(Function<? super T, ? extends T>) - Method in class StreamEx
-
Returns a stream where the first element is the replaced with the result
of applying the given function while the other elements are left intact.
- mapFirstOrElse(Function<? super T, ? extends R>, Function<? super T, ? extends R>) - Method in class StreamEx
-
Returns a stream where the first element is transformed using
firstMapper function and other elements are transformed using
notFirstMapper function.
- mapKeys(Function<? super K, ? extends KK>) - Method in class EntryStream
-
Returns an EntryStream consisting of the entries whose keys are
modified by applying the given function and values are left unchanged.
- mapKeyValue(BiFunction<? super K, ? super V, ? extends R>) - Method in class EntryStream
-
Returns a
StreamEx consisting of the results of applying the
given function to the keys and values of this stream.
- mapLast(DoubleUnaryOperator) - Method in class DoubleStreamEx
-
Returns a stream where the last element is the replaced with the result
of applying the given function while the other elements are left intact.
- mapLast(IntUnaryOperator) - Method in class IntStreamEx
-
Returns a stream where the last element is the replaced with the result
of applying the given function while the other elements are left intact.
- mapLast(LongUnaryOperator) - Method in class LongStreamEx
-
Returns a stream where the last element is the replaced with the result
of applying the given function while the other elements are left intact.
- mapLast(Function<? super T, ? extends T>) - Method in class StreamEx
-
Returns a stream where the last element is the replaced with the result
of applying the given function while the other elements are left intact.
- mapLastOrElse(Function<? super T, ? extends R>, Function<? super T, ? extends R>) - Method in class StreamEx
-
Returns a stream where the last element is transformed using
lastMapper function and other elements are transformed using
notLastMapper function.
- mapping(DoubleUnaryOperator, DoubleCollector<A, R>) - Static method in interface DoubleCollector
-
Adapts a DoubleCollector to another one by applying a mapping
function to each input element before accumulation.
- mapping(IntUnaryOperator, IntCollector<A, R>) - Static method in interface IntCollector
-
Adapts an IntCollector to another one by applying a mapping
function to each input element before accumulation.
- mapping(LongUnaryOperator, LongCollector<A, R>) - Static method in interface LongCollector
-
Adapts a LongCollector to another one by applying a mapping
function to each input element before accumulation.
- mapping(Function<? super T, ? extends U>, Collector<? super U, A, R>) - Static method in class MoreCollectors
-
Adapts a Collector accepting elements of type U to one
accepting elements of type T by applying a mapping function to
each input element before accumulation.
- mapping(Function<? super T, ? extends U>) - Static method in class MoreCollectors
-
Returns a collector which collects input elements to the new List
transforming them with the supplied function beforehand.
- mappingToObj(DoubleFunction<U>, Collector<U, A, R>) - Static method in interface DoubleCollector
-
Adapts a
Collector accepting elements of type
U to a
DoubleCollector by applying a mapping function to each input
element before accumulation.
- mappingToObj(IntFunction<U>, Collector<U, A, R>) - Static method in interface IntCollector
-
Adapts a
Collector accepting elements of type
U to an
IntCollector by applying a mapping function to each input element
before accumulation.
- mappingToObj(LongFunction<U>, Collector<U, A, R>) - Static method in interface LongCollector
-
Adapts a
Collector accepting elements of type
U to a
LongCollector by applying a mapping function to each input
element before accumulation.
- mapToDouble(ToDoubleFunction<? super T>) - Method in class AbstractStreamEx
-
- mapToDouble(IntToDoubleFunction) - Method in class IntStreamEx
-
- mapToDouble(LongToDoubleFunction) - Method in class LongStreamEx
-
- mapToEntry(DoubleFunction<? extends K>, DoubleFunction<? extends V>) - Method in class DoubleStreamEx
-
Returns an
EntryStream consisting of the
Map.Entry objects
which keys and values are results of applying the given functions to the
elements of this stream.
- mapToEntry(IntFunction<? extends K>, IntFunction<? extends V>) - Method in class IntStreamEx
-
Returns an
EntryStream consisting of the
Map.Entry objects
which keys and values are results of applying the given functions to the
elements of this stream.
- mapToEntry(LongFunction<? extends K>, LongFunction<? extends V>) - Method in class LongStreamEx
-
Returns an
EntryStream consisting of the
Map.Entry objects
which keys and values are results of applying the given functions to the
elements of this stream.
- mapToEntry(Function<? super T, ? extends V>) - Method in class StreamEx
-
Returns an
EntryStream consisting of the
Map.Entry objects
which keys are elements of this stream and values are results of applying
the given function to the elements of this stream.
- mapToEntry(Function<? super T, ? extends K>, Function<? super T, ? extends V>) - Method in class StreamEx
-
Returns an
EntryStream consisting of the
Map.Entry objects
which keys and values are results of applying the given functions to the
elements of this stream.
- mapToInt(ToIntFunction<? super T>) - Method in class AbstractStreamEx
-
- mapToInt(DoubleToIntFunction) - Method in class DoubleStreamEx
-
- mapToInt(LongToIntFunction) - Method in class LongStreamEx
-
- mapToKey(BiFunction<? super K, ? super V, ? extends KK>) - Method in class EntryStream
-
Returns an EntryStream consisting of the entries whose keys are
modified by applying the given function and values are left unchanged.
- mapToLong(ToLongFunction<? super T>) - Method in class AbstractStreamEx
-
- mapToLong(DoubleToLongFunction) - Method in class DoubleStreamEx
-
- mapToLong(IntToLongFunction) - Method in class IntStreamEx
-
- mapToObj(DoubleFunction<? extends U>) - Method in class DoubleStreamEx
-
- mapToObj(IntFunction<? extends U>) - Method in class IntStreamEx
-
- mapToObj(LongFunction<? extends U>) - Method in class LongStreamEx
-
- mapToValue(BiFunction<? super K, ? super V, ? extends VV>) - Method in class EntryStream
-
Returns an EntryStream consisting of the entries whose keys are
left unchanged and values are modified by applying the given function.
- mapValues(Function<? super V, ? extends VV>) - Method in class EntryStream
-
Returns an EntryStream consisting of the entries whose keys are
left unchanged and values are modified by applying the given function.
- max(Comparator<? super T>) - Method in class AbstractStreamEx
-
- max() - Static method in interface DoubleCollector
-
Returns a
DoubleCollector that produces the maximal element,
described as an
OptionalDouble.
- max() - Method in class DoubleStreamEx
-
- max(Comparator<Double>) - Method in class DoubleStreamEx
-
Returns the maximum element of this stream according to the provided
Comparator.
- max() - Static method in interface IntCollector
-
Returns an
IntCollector that produces the maximal element,
described as an
OptionalInt.
- max() - Method in class IntStreamEx
-
- max(Comparator<Integer>) - Method in class IntStreamEx
-
Returns the maximum element of this stream according to the provided
Comparator.
- max() - Static method in interface LongCollector
-
Returns a
LongCollector that produces the maximal element,
described as an
OptionalLong.
- max() - Method in class LongStreamEx
-
- max(Comparator<Long>) - Method in class LongStreamEx
-
Returns the maximum element of this stream according to the provided
Comparator.
- maxAll(Comparator<? super T>, Collector<? super T, A, D>) - Static method in class MoreCollectors
-
Returns a
Collector which finds all the elements which are equal
to each other and bigger than any other element according to the
specified
Comparator.
- maxAll(Comparator<? super T>) - Static method in class MoreCollectors
-
Returns a
Collector which finds all the elements which are equal
to each other and bigger than any other element according to the
specified
Comparator.
- maxAll(Collector<T, A, D>) - Static method in class MoreCollectors
-
Returns a Collector which finds all the elements which are equal
to each other and bigger than any other element according to the natural
order.
- maxAll() - Static method in class MoreCollectors
-
Returns a Collector which finds all the elements which are equal
to each other and bigger than any other element according to the natural
order.
- maxBy(Function<? super T, ? extends V>) - Method in class AbstractStreamEx
-
Returns the maximum element of this stream according to the natural order
of the keys extracted by provided function.
- maxBy(DoubleFunction<V>) - Method in class DoubleStreamEx
-
Returns the maximum element of this stream according to the provided key
extractor function.
- maxBy(IntFunction<V>) - Method in class IntStreamEx
-
Returns the maximum element of this stream according to the provided key
extractor function.
- maxBy(LongFunction<V>) - Method in class LongStreamEx
-
Returns the maximum element of this stream according to the provided key
extractor function.
- maxByDouble(ToDoubleFunction<? super T>) - Method in class AbstractStreamEx
-
Returns the maximum element of this stream according to the double values
extracted by provided function.
- maxByDouble(DoubleUnaryOperator) - Method in class DoubleStreamEx
-
Returns the maximum element of this stream according to the provided key
extractor function.
- maxByDouble(IntToDoubleFunction) - Method in class IntStreamEx
-
Returns the maximum element of this stream according to the provided key
extractor function.
- maxByDouble(LongToDoubleFunction) - Method in class LongStreamEx
-
Returns the maximum element of this stream according to the provided key
extractor function.
- maxByInt(ToIntFunction<? super T>) - Method in class AbstractStreamEx
-
Returns the maximum element of this stream according to the int values
extracted by provided function.
- maxByInt(DoubleToIntFunction) - Method in class DoubleStreamEx
-
Returns the maximum element of this stream according to the provided key
extractor function.
- maxByInt(IntUnaryOperator) - Method in class IntStreamEx
-
Returns the maximum element of this stream according to the provided key
extractor function.
- maxByInt(LongToIntFunction) - Method in class LongStreamEx
-
Returns the maximum element of this stream according to the provided key
extractor function.
- maxByLong(ToLongFunction<? super T>) - Method in class AbstractStreamEx
-
Returns the maximum element of this stream according to the long values
extracted by provided function.
- maxByLong(DoubleToLongFunction) - Method in class DoubleStreamEx
-
Returns the maximum element of this stream according to the provided key
extractor function.
- maxByLong(IntToLongFunction) - Method in class IntStreamEx
-
Returns the maximum element of this stream according to the provided key
extractor function.
- maxByLong(LongUnaryOperator) - Method in class LongStreamEx
-
Returns the maximum element of this stream according to the provided key
extractor function.
- maxChars(int) - Method in class Joining
-
Returns a Collector which behaves like this collector, but sets
the maximal length of the resulting string to the specified number of
UTF-16 characters (or Unicode code units).
- maxCodePoints(int) - Method in class Joining
-
Returns a Collector which behaves like this collector, but sets
the maximal number of Unicode code points of the resulting string.
- maxGraphemes(int) - Method in class Joining
-
Returns a Collector which behaves like this collector, but sets
the maximal number of grapheme clusters.
- maxIndex(Comparator<? super T>) - Static method in class MoreCollectors
-
Returns a
Collector which finds the index of the maximal stream
element according to the specified
Comparator.
- maxIndex() - Static method in class MoreCollectors
-
Returns a Collector which finds the index of the maximal stream
element according to the elements natural order.
- min(Comparator<? super T>) - Method in class AbstractStreamEx
-
- min() - Static method in interface DoubleCollector
-
Returns a
DoubleCollector that produces the minimal element,
described as an
OptionalDouble.
- min() - Method in class DoubleStreamEx
-
- min(Comparator<Double>) - Method in class DoubleStreamEx
-
Returns the minimum element of this stream according to the provided
Comparator.
- min() - Static method in interface IntCollector
-
Returns an
IntCollector that produces the minimal element,
described as an
OptionalInt.
- min() - Method in class IntStreamEx
-
- min(Comparator<Integer>) - Method in class IntStreamEx
-
Returns the minimum element of this stream according to the provided
Comparator.
- min() - Static method in interface LongCollector
-
Returns a
LongCollector that produces the minimal element,
described as an
OptionalLong.
- min() - Method in class LongStreamEx
-
- min(Comparator<Long>) - Method in class LongStreamEx
-
Returns the minimum element of this stream according to the provided
Comparator.
- minAll(Comparator<? super T>, Collector<T, A, D>) - Static method in class MoreCollectors
-
Returns a
Collector which finds all the elements which are equal
to each other and smaller than any other element according to the
specified
Comparator.
- minAll(Comparator<? super T>) - Static method in class MoreCollectors
-
Returns a
Collector which finds all the elements which are equal
to each other and smaller than any other element according to the
specified
Comparator.
- minAll(Collector<T, A, D>) - Static method in class MoreCollectors
-
Returns a Collector which finds all the elements which are equal
to each other and smaller than any other element according to the natural
order.
- minAll() - Static method in class MoreCollectors
-
Returns a Collector which finds all the elements which are equal
to each other and smaller than any other element according to the natural
order.
- minBy(Function<? super T, ? extends V>) - Method in class AbstractStreamEx
-
Returns the minimum element of this stream according to the natural order
of the keys extracted by provided function.
- minBy(DoubleFunction<V>) - Method in class DoubleStreamEx
-
Returns the minimum element of this stream according to the provided key
extractor function.
- minBy(IntFunction<V>) - Method in class IntStreamEx
-
Returns the minimum element of this stream according to the provided key
extractor function.
- minBy(LongFunction<V>) - Method in class LongStreamEx
-
Returns the minimum element of this stream according to the provided key
extractor function.
- minByDouble(ToDoubleFunction<? super T>) - Method in class AbstractStreamEx
-
Returns the minimum element of this stream according to the double values
extracted by provided function.
- minByDouble(DoubleUnaryOperator) - Method in class DoubleStreamEx
-
Returns the minimum element of this stream according to the provided key
extractor function.
- minByDouble(IntToDoubleFunction) - Method in class IntStreamEx
-
Returns the minimum element of this stream according to the provided key
extractor function.
- minByDouble(LongToDoubleFunction) - Method in class LongStreamEx
-
Returns the minimum element of this stream according to the provided key
extractor function.
- minByInt(ToIntFunction<? super T>) - Method in class AbstractStreamEx
-
Returns the minimum element of this stream according to the int values
extracted by provided function.
- minByInt(DoubleToIntFunction) - Method in class DoubleStreamEx
-
Returns the minimum element of this stream according to the provided key
extractor function.
- minByInt(IntUnaryOperator) - Method in class IntStreamEx
-
Returns the minimum element of this stream according to the provided key
extractor function.
- minByInt(LongToIntFunction) - Method in class LongStreamEx
-
Returns the minimum element of this stream according to the provided key
extractor function.
- minByLong(ToLongFunction<? super T>) - Method in class AbstractStreamEx
-
Returns the minimum element of this stream according to the long values
extracted by provided function.
- minByLong(DoubleToLongFunction) - Method in class DoubleStreamEx
-
Returns the minimum element of this stream according to the provided key
extractor function.
- minByLong(IntToLongFunction) - Method in class IntStreamEx
-
Returns the minimum element of this stream according to the provided key
extractor function.
- minByLong(LongUnaryOperator) - Method in class LongStreamEx
-
Returns the minimum element of this stream according to the provided key
extractor function.
- minIndex(Comparator<? super T>) - Static method in class MoreCollectors
-
Returns a
Collector which finds the index of the minimal stream
element according to the specified
Comparator.
- minIndex() - Static method in class MoreCollectors
-
Returns a Collector which finds the index of the minimal stream
element according to the elements natural order.
- minMax(Comparator<? super T>, BiFunction<? super T, ? super T, ? extends R>) - Static method in class MoreCollectors
-
Returns a Collector which finds the minimal and maximal element
according to the supplied comparator, then applies finisher function to
them producing the final result.
- MoreCollectors - Class in one.util.streamex
-
Implementations of several collectors in addition to ones available in JDK.
- of(Supplier<R>, ObjDoubleConsumer<R>, BiConsumer<R, R>) - Static method in interface DoubleCollector
-
Returns a new DoubleCollector described by the given
supplier, accumulator, and merger functions.
- of(Collector<Double, A, R>) - Static method in interface DoubleCollector
-
Adapts a Collector which accepts elements of type Double
to a DoubleCollector.
- of(Supplier<A>, ObjDoubleConsumer<A>, BiConsumer<A, A>, Function<A, R>) - Static method in interface DoubleCollector
-
Returns a new DoubleCollector described by the given
supplier, accumulator, merger, and
finisher functions.
- of(double) - Static method in class DoubleStreamEx
-
Returns a sequential DoubleStreamEx containing a single element.
- of(double...) - Static method in class DoubleStreamEx
-
Returns a sequential ordered DoubleStreamEx whose elements are
the specified values.
- of(double[], int, int) - Static method in class DoubleStreamEx
-
Returns a sequential
DoubleStreamEx with the specified range of
the specified array as its source.
- of(Double[]) - Static method in class DoubleStreamEx
-
Returns a sequential ordered DoubleStreamEx whose elements are
the unboxed elements of supplied array.
- of(DoubleBuffer) - Static method in class DoubleStreamEx
-
Returns a sequential ordered
DoubleStreamEx whose elements are
the values in the supplied
DoubleBuffer.
- of(float...) - Static method in class DoubleStreamEx
-
Returns a sequential ordered DoubleStreamEx whose elements are
the specified float values casted to double.
- of(float[], int, int) - Static method in class DoubleStreamEx
-
Returns a sequential
DoubleStreamEx with the specified range of
the specified array as its source.
- of(DoubleStream) - Static method in class DoubleStreamEx
-
Returns a
DoubleStreamEx object which wraps given
DoubleStream.
- of(Spliterator.OfDouble) - Static method in class DoubleStreamEx
-
- of(PrimitiveIterator.OfDouble) - Static method in class DoubleStreamEx
-
- of(OptionalDouble) - Static method in class DoubleStreamEx
-
Returns a sequential
DoubleStreamEx containing an
OptionalDouble value, if present, otherwise returns an empty
DoubleStreamEx.
- of(Collection<Double>) - Static method in class DoubleStreamEx
-
Returns a sequential ordered DoubleStreamEx whose elements are
the unboxed elements of supplied collection.
- of(Random) - Static method in class DoubleStreamEx
-
Returns an effectively unlimited stream of pseudorandom
double
values, each between zero (inclusive) and one (exclusive) produced by
given
Random object.
- of(Random, long) - Static method in class DoubleStreamEx
-
Returns a stream producing the given
streamSize number of
pseudorandom
double values, each between zero (inclusive) and one
(exclusive) produced by given
Random object.
- of(Random, double, double) - Static method in class DoubleStreamEx
-
Returns an effectively unlimited stream of pseudorandom
double
values, each conforming to the given origin (inclusive) and bound
(exclusive) produced by given
Random object.
- of(Random, long, double, double) - Static method in class DoubleStreamEx
-
Returns a stream producing the given
streamSize number of
pseudorandom
double values, each conforming to the given origin
(inclusive) and bound (exclusive) produced by given
Random
object.
- of(Stream<? extends Map.Entry<K, V>>) - Static method in class EntryStream
-
Returns an
EntryStream object which wraps given
Stream of
Map.Entry elements
- of(Spliterator<? extends Map.Entry<K, V>>) - Static method in class EntryStream
-
- of(Iterator<? extends Map.Entry<K, V>>) - Static method in class EntryStream
-
- of(Map<K, V>) - Static method in class EntryStream
-
Returns an EntryStream object which contains the entries of
supplied Map.
- of(List<V>) - Static method in class EntryStream
-
Returns an EntryStream object whose keys are indices of given
list and the values are the corresponding list elements.
- of(V[]) - Static method in class EntryStream
-
Returns an EntryStream object whose keys are indices of given
array and the values are the corresponding array elements.
- of(K, V) - Static method in class EntryStream
-
Returns a sequential EntryStream containing a single key-value
pair
- of(K, V, K, V) - Static method in class EntryStream
-
Returns a sequential EntryStream containing two key-value pairs
- of(K, V, K, V, K, V) - Static method in class EntryStream
-
Returns a sequential EntryStream containing three key-value pairs
- of(K, V, K, V, K, V, K, V) - Static method in class EntryStream
-
Returns a sequential EntryStream containing four key-value pairs
- of(K, V, K, V, K, V, K, V, K, V) - Static method in class EntryStream
-
Returns a sequential EntryStream containing five key-value pairs
- of(K, V, K, V, K, V, K, V, K, V, K, V) - Static method in class EntryStream
-
Returns a sequential EntryStream containing six key-value pairs
- of(K, V, K, V, K, V, K, V, K, V, K, V, K, V) - Static method in class EntryStream
-
Returns a sequential EntryStream containing seven key-value pairs
- of(K, V, K, V, K, V, K, V, K, V, K, V, K, V, K, V) - Static method in class EntryStream
-
Returns a sequential EntryStream containing eight key-value pairs
- of(K, V, K, V, K, V, K, V, K, V, K, V, K, V, K, V, K, V) - Static method in class EntryStream
-
Returns a sequential EntryStream containing nine key-value pairs
- of(K, V, K, V, K, V, K, V, K, V, K, V, K, V, K, V, K, V, K, V) - Static method in class EntryStream
-
Returns a sequential EntryStream containing ten key-value pairs
- of(Supplier<R>, ObjIntConsumer<R>, BiConsumer<R, R>) - Static method in interface IntCollector
-
Returns a new IntCollector described by the given
supplier, accumulator, and merger functions.
- of(Collector<Integer, A, R>) - Static method in interface IntCollector
-
Adapts a Collector which accepts elements of type Integer
to an IntCollector.
- of(Supplier<A>, ObjIntConsumer<A>, BiConsumer<A, A>, Function<A, R>) - Static method in interface IntCollector
-
Returns a new IntCollector described by the given
supplier, accumulator, merger, and
finisher functions.
- of(int) - Static method in class IntStreamEx
-
Returns a sequential IntStreamEx containing a single element.
- of(int...) - Static method in class IntStreamEx
-
Returns a sequential ordered IntStreamEx whose elements are the
specified values.
- of(int[], int, int) - Static method in class IntStreamEx
-
Returns a sequential
IntStreamEx with the specified range of the
specified array as its source.
- of(byte...) - Static method in class IntStreamEx
-
Returns a sequential ordered IntStreamEx whose elements are the
specified values casted to int.
- of(byte[], int, int) - Static method in class IntStreamEx
-
Returns a sequential
IntStreamEx with the specified range of the
specified array as its source.
- of(char...) - Static method in class IntStreamEx
-
Returns a sequential ordered IntStreamEx whose elements are the
specified values casted to int.
- of(char[], int, int) - Static method in class IntStreamEx
-
Returns a sequential
IntStreamEx with the specified range of the
specified array as its source.
- of(short...) - Static method in class IntStreamEx
-
Returns a sequential ordered IntStreamEx whose elements are the
specified values casted to int.
- of(short[], int, int) - Static method in class IntStreamEx
-
Returns a sequential
IntStreamEx with the specified range of the
specified array as its source.
- of(InputStream) - Static method in class IntStreamEx
-
Returns a sequential ordered
IntStreamEx backed by the content of
given
InputStream.
- of(Integer[]) - Static method in class IntStreamEx
-
Returns a sequential ordered IntStreamEx whose elements are the
unboxed elements of supplied array.
- of(IntBuffer) - Static method in class IntStreamEx
-
Returns a sequential ordered
IntStreamEx whose elements are the
values in the supplied
IntBuffer.
- of(IntStream) - Static method in class IntStreamEx
-
Returns an
IntStreamEx object which wraps given
IntStream
.
- of(Spliterator.OfInt) - Static method in class IntStreamEx
-
- of(PrimitiveIterator.OfInt) - Static method in class IntStreamEx
-
- of(OptionalInt) - Static method in class IntStreamEx
-
Returns a sequential
IntStreamEx containing an
OptionalInt value, if present, otherwise returns an empty
IntStreamEx.
- of(BitSet) - Static method in class IntStreamEx
-
Returns an
IntStreamEx of indices for which the specified
BitSet contains a bit in the set state.
- of(Collection<Integer>) - Static method in class IntStreamEx
-
Returns a sequential ordered IntStreamEx whose elements are the
unboxed elements of supplied collection.
- of(Random) - Static method in class IntStreamEx
-
Returns an effectively unlimited stream of pseudorandom
int
values produced by given
Random object.
- of(Random, long) - Static method in class IntStreamEx
-
Returns a stream producing the given streamSize number of
pseudorandom int values.
- of(Random, int, int) - Static method in class IntStreamEx
-
Returns an effectively unlimited stream of pseudorandom int
values, each conforming to the given origin (inclusive) and bound
(exclusive).
- of(Random, long, int, int) - Static method in class IntStreamEx
-
Returns a stream producing the given streamSize number of
pseudorandom int values, each conforming to the given origin
(inclusive) and bound (exclusive).
- of(Supplier<R>, ObjLongConsumer<R>, BiConsumer<R, R>) - Static method in interface LongCollector
-
Returns a new LongCollector described by the given
supplier, accumulator, and merger functions.
- of(Collector<Long, A, R>) - Static method in interface LongCollector
-
Adapts a Collector which accepts elements of type Long to
a LongCollector.
- of(Supplier<A>, ObjLongConsumer<A>, BiConsumer<A, A>, Function<A, R>) - Static method in interface LongCollector
-
Returns a new LongCollector described by the given
supplier, accumulator, merger, and
finisher functions.
- of(long) - Static method in class LongStreamEx
-
Returns a sequential LongStreamEx containing a single element.
- of(long...) - Static method in class LongStreamEx
-
Returns a sequential ordered LongStreamEx whose elements are the
specified values.
- of(long[], int, int) - Static method in class LongStreamEx
-
Returns a sequential
LongStreamEx with the specified range of the
specified array as its source.
- of(Long[]) - Static method in class LongStreamEx
-
Returns a sequential ordered LongStreamEx whose elements are the
unboxed elements of supplied array.
- of(LongBuffer) - Static method in class LongStreamEx
-
Returns a sequential ordered
LongStreamEx whose elements are the
values in the supplied
LongBuffer.
- of(LongStream) - Static method in class LongStreamEx
-
Returns a
LongStreamEx object which wraps given
LongStream.
- of(Spliterator.OfLong) - Static method in class LongStreamEx
-
- of(PrimitiveIterator.OfLong) - Static method in class LongStreamEx
-
- of(OptionalLong) - Static method in class LongStreamEx
-
Returns a sequential
LongStreamEx containing an
OptionalLong value, if present, otherwise returns an empty
LongStreamEx.
- of(Collection<Long>) - Static method in class LongStreamEx
-
Returns a sequential ordered LongStreamEx whose elements are the
unboxed elements of supplied collection.
- of(Random) - Static method in class LongStreamEx
-
Returns an effectively unlimited stream of pseudorandom
long
values produced by given
Random object.
- of(Random, long) - Static method in class LongStreamEx
-
Returns a stream producing the given streamSize number of
pseudorandom long values.
- of(Random, long, long) - Static method in class LongStreamEx
-
Returns an effectively unlimited stream of pseudorandom long
values, each conforming to the given origin (inclusive) and bound
(exclusive).
- of(Random, long, long, long) - Static method in class LongStreamEx
-
Returns a stream producing the given streamSize number of
pseudorandom long values, each conforming to the given origin
(inclusive) and bound (exclusive).
- of(T) - Static method in class StreamEx
-
Returns a sequential StreamEx containing a single element.
- of(T...) - Static method in class StreamEx
-
Returns a sequential ordered StreamEx whose elements are the
specified values.
- of(T[], int, int) - Static method in class StreamEx
-
Returns a sequential
StreamEx with the specified range of the
specified array as its source.
- of(Collection<? extends T>) - Static method in class StreamEx
-
Returns a sequential StreamEx with given collection as its
source.
- of(Stream<T>) - Static method in class StreamEx
-
- of(Spliterator<? extends T>) - Static method in class StreamEx
-
- of(Iterator<? extends T>) - Static method in class StreamEx
-
- of(Enumeration<? extends T>) - Static method in class StreamEx
-
- of(Optional<? extends T>) - Static method in class StreamEx
-
Returns a sequential
StreamEx containing an
Optional
value, if present, otherwise returns an empty
StreamEx.
- ofChars(CharSequence) - Static method in class IntStreamEx
-
Returns an
IntStreamEx of
int zero-extending the
char values from the supplied
CharSequence.
- ofCodePoints(CharSequence) - Static method in class IntStreamEx
-
Returns an
IntStreamEx of code point values from the supplied
CharSequence.
- ofIndices(List<T>) - Static method in class IntStreamEx
-
Returns a sequential ordered IntStreamEx containing all the
indices of the supplied list.
- ofIndices(List<T>, Predicate<T>) - Static method in class IntStreamEx
-
Returns a sequential ordered IntStreamEx containing all the
indices of the supplied list elements which match given predicate.
- ofIndices(T[]) - Static method in class IntStreamEx
-
Returns a sequential ordered IntStreamEx containing all the
indices of the supplied array.
- ofIndices(T[], Predicate<T>) - Static method in class IntStreamEx
-
Returns a sequential ordered IntStreamEx containing all the
indices of the supplied array elements which match given predicate.
- ofIndices(int[]) - Static method in class IntStreamEx
-
Returns a sequential ordered IntStreamEx containing all the
indices of supplied array.
- ofIndices(int[], IntPredicate) - Static method in class IntStreamEx
-
Returns a sequential ordered IntStreamEx containing all the
indices of the supplied array elements which match given predicate.
- ofIndices(long[]) - Static method in class IntStreamEx
-
Returns a sequential ordered IntStreamEx containing all the
indices of supplied array.
- ofIndices(long[], LongPredicate) - Static method in class IntStreamEx
-
Returns a sequential ordered IntStreamEx containing all the
indices of the supplied array elements which match given predicate.
- ofIndices(double[]) - Static method in class IntStreamEx
-
Returns a sequential ordered IntStreamEx containing all the
indices of supplied array.
- ofIndices(double[], DoublePredicate) - Static method in class IntStreamEx
-
Returns a sequential ordered IntStreamEx containing all the
indices of the supplied array elements which match given predicate.
- ofKeys(Map<T, ?>) - Static method in class StreamEx
-
Returns a sequential
StreamEx with keySet of given
Map as
its source.
- ofKeys(Map<T, V>, Predicate<? super V>) - Static method in class StreamEx
-
Returns a sequential
StreamEx of given
Map keys which
corresponding values match the supplied filter.
- ofLines(BufferedReader) - Static method in class StreamEx
-
Returns a
StreamEx, the elements of which are lines read from the
supplied
BufferedReader.
- ofLines(Reader) - Static method in class StreamEx
-
Returns a
StreamEx, the elements of which are lines read from the
supplied
Reader.
- ofLines(Path) - Static method in class StreamEx
-
Read all lines from a file as a StreamEx.
- ofLines(Path, Charset) - Static method in class StreamEx
-
Read all lines from a file as a StreamEx.
- ofNullable(T) - Static method in class StreamEx
-
Returns a sequential StreamEx containing a single element, if
non-null, otherwise returns an empty StreamEx.
- ofPairs(List<T>) - Static method in class EntryStream
-
Returns a sequential ordered EntryStream containing the possible
pairs of elements taken from the provided list.
- ofPairs(T[]) - Static method in class EntryStream
-
Returns a sequential ordered EntryStream containing the possible
pairs of elements taken from the provided array.
- ofPairs(List<U>, BiFunction<? super U, ? super U, ? extends T>) - Static method in class StreamEx
-
Returns a sequential ordered StreamEx containing the results of
applying the given mapper function to the all possible pairs of elements
taken from the provided list.
- ofPairs(U[], BiFunction<? super U, ? super U, ? extends T>) - Static method in class StreamEx
-
Returns a sequential ordered StreamEx containing the results of
applying the given mapper function to the all possible pairs of elements
taken from the provided array.
- ofPermutations(int) - Static method in class StreamEx
-
Returns a new StreamEx of int[] arrays containing all the
possible permutations of numbers from 0 to length-1 in lexicographic
order.
- ofReversed(List<? extends T>) - Static method in class StreamEx
-
Returns a sequential StreamEx which elements are elements of
given list in descending order.
- ofReversed(T[]) - Static method in class StreamEx
-
Returns a sequential StreamEx which elements are elements of
given array in descending order.
- ofSubLists(List<T>, int) - Static method in class StreamEx
-
Returns a new StreamEx which consists of non-overlapping sublists
of given source list having the specified length (the last sublist may be
shorter).
- ofSubLists(List<T>, int, int) - Static method in class StreamEx
-
Returns a new StreamEx which consists of possibly-overlapping
sublists of given source list having the specified length with given
shift value.
- ofTree(T, BiFunction<Integer, T, Stream<T>>) - Static method in class EntryStream
-
Return a new
EntryStream containing all the nodes of tree-like
data structure in entry values along with the corresponding tree depths
in entry keys, in depth-first order.
- ofTree(T, Class<TT>, BiFunction<Integer, TT, Stream<T>>) - Static method in class EntryStream
-
Return a new
EntryStream containing all the nodes of tree-like
data structure in entry values along with the corresponding tree depths
in entry keys, in depth-first order.
- ofTree(T, Function<T, Stream<T>>) - Static method in class StreamEx
-
Return a new
StreamEx containing all the nodes of tree-like data
structure in depth-first order.
- ofTree(T, Class<TT>, Function<TT, Stream<T>>) - Static method in class StreamEx
-
Return a new
StreamEx containing all the nodes of tree-like data
structure in depth-first order.
- ofValues(Map<?, T>) - Static method in class StreamEx
-
Returns a sequential
StreamEx with values of given
Map as
its source.
- ofValues(Map<K, T>, Predicate<? super K>) - Static method in class StreamEx
-
Returns a sequential
StreamEx of given
Map values which
corresponding keys match the supplied filter.
- onClose(Runnable) - Method in class AbstractStreamEx
-
- onClose(Runnable) - Method in class DoubleStreamEx
-
- onClose(Runnable) - Method in class IntStreamEx
-
- onClose(Runnable) - Method in class LongStreamEx
-
- one.util.streamex - package one.util.streamex
-
This library provides enhancements for Java 8 Stream API.
- onlyOne() - Static method in class MoreCollectors
-
Returns a Collector which collects the stream element if stream
contains exactly one element.
- pairing(Collector<? super T, A1, R1>, Collector<? super T, A2, R2>, BiFunction<? super R1, ? super R2, ? extends R>) - Static method in class MoreCollectors
-
Returns a Collector which aggregates the results of two supplied
collectors using the supplied finisher function.
- pairMap(DoubleBinaryOperator) - Method in class DoubleStreamEx
-
Returns a stream consisting of the results of applying the given function
to the every adjacent pair of elements of this stream.
- pairMap(IntBinaryOperator) - Method in class IntStreamEx
-
Returns a stream consisting of the results of applying the given function
to the every adjacent pair of elements of this stream.
- pairMap(LongBinaryOperator) - Method in class LongStreamEx
-
Returns a stream consisting of the results of applying the given function
to the every adjacent pair of elements of this stream.
- pairMap(BiFunction<? super T, ? super T, ? extends R>) - Method in class StreamEx
-
Returns a stream consisting of the results of applying the given function
to the every adjacent pair of elements of this stream.
- parallel() - Method in class AbstractStreamEx
-
- parallel(ForkJoinPool) - Method in class AbstractStreamEx
-
- parallel() - Method in class DoubleStreamEx
-
- parallel(ForkJoinPool) - Method in class DoubleStreamEx
-
- parallel() - Method in class IntStreamEx
-
- parallel(ForkJoinPool) - Method in class IntStreamEx
-
- parallel() - Method in class LongStreamEx
-
- parallel(ForkJoinPool) - Method in class LongStreamEx
-
- partitioningBy(DoublePredicate) - Static method in interface DoubleCollector
-
Returns a DoubleCollector which partitions the input elements
according to a DoublePredicate, and organizes them into a
Map<Boolean, double[]>.
- partitioningBy(DoublePredicate, DoubleCollector<A, D>) - Static method in interface DoubleCollector
-
Returns a DoubleCollector which partitions the input numbers
according to a DoublePredicate, reduces the values in each
partition according to another IntCollector, and organizes them
into a Map<Boolean, D> whose values are the result of the
downstream reduction.
- partitioningBy(IntPredicate) - Static method in interface IntCollector
-
Returns an IntCollector which partitions the input elements
according to an IntPredicate, and organizes them into a
Map<Boolean, int[]>.
- partitioningBy(IntPredicate, IntCollector<A, D>) - Static method in interface IntCollector
-
Returns an IntCollector which partitions the input numbers
according to an IntPredicate, reduces the values in each
partition according to another IntCollector, and organizes them
into a Map<Boolean, D> whose values are the result of the
downstream reduction.
- partitioningBy(LongPredicate) - Static method in interface LongCollector
-
Returns a LongCollector which partitions the input elements
according to a LongPredicate, and organizes them into a
Map<Boolean, long[]>.
- partitioningBy(LongPredicate, LongCollector<A, D>) - Static method in interface LongCollector
-
Returns a LongCollector which partitions the input numbers
according to a LongPredicate, reduces the values in each
partition according to another IntCollector, and organizes them
into a Map<Boolean, D> whose values are the result of the
downstream reduction.
- partitioningBy(Predicate<? super T>, Collector<? super T, A, D>) - Static method in class MoreCollectors
-
Returns a Collector which partitions the input elements according
to a Predicate, reduces the values in each partition according to
another Collector, and organizes them into a
Map<Boolean, D> whose values are the result of the downstream
reduction.
- partitioningBy(Predicate<? super T>) - Method in class StreamEx
-
Returns a Map<Boolean, List<T>> which contains two partitions of
the input elements according to a Predicate.
- partitioningBy(Predicate<? super T>, Collector<? super T, ?, D>) - Method in class StreamEx
-
Returns a Map<Boolean, D> which contains two partitions of the
input elements according to a Predicate, which are reduced
according to the supplied Collector.
- partitioningTo(Predicate<? super T>, Supplier<C>) - Method in class StreamEx
-
Returns a Map<Boolean, C> which contains two partitions of the
input elements according to a Predicate.
- peek(Consumer<? super T>) - Method in class AbstractStreamEx
-
- peek(DoubleConsumer) - Method in class DoubleStreamEx
-
- peek(IntConsumer) - Method in class IntStreamEx
-
- peek(LongConsumer) - Method in class LongStreamEx
-
- peekFirst(DoubleConsumer) - Method in class DoubleStreamEx
-
Returns a stream consisting of the elements of this stream, additionally
performing the provided action on the first stream element when it's
consumed from the resulting stream.
- peekFirst(IntConsumer) - Method in class IntStreamEx
-
Returns a stream consisting of the elements of this stream, additionally
performing the provided action on the first stream element when it's
consumed from the resulting stream.
- peekFirst(LongConsumer) - Method in class LongStreamEx
-
Returns a stream consisting of the elements of this stream, additionally
performing the provided action on the first stream element when it's
consumed from the resulting stream.
- peekFirst(Consumer<? super T>) - Method in class StreamEx
-
Returns a stream consisting of the elements of this stream, additionally
performing the provided action on the first stream element when it's
consumed from the resulting stream.
- peekKeys(Consumer<? super K>) - Method in class EntryStream
-
Returns a stream consisting of the entries of this stream, additionally
performing the provided action on each entry key as entries are consumed
from the resulting stream.
- peekKeyValue(BiConsumer<? super K, ? super V>) - Method in class EntryStream
-
Returns a stream consisting of the entries of this stream, additionally
performing the provided action on each entry key-value pair as entries
are consumed from the resulting stream.
- peekLast(DoubleConsumer) - Method in class DoubleStreamEx
-
Returns a stream consisting of the elements of this stream, additionally
performing the provided action on the last stream element when it's
consumed from the resulting stream.
- peekLast(IntConsumer) - Method in class IntStreamEx
-
Returns a stream consisting of the elements of this stream, additionally
performing the provided action on the last stream element when it's
consumed from the resulting stream.
- peekLast(LongConsumer) - Method in class LongStreamEx
-
Returns a stream consisting of the elements of this stream, additionally
performing the provided action on the last stream element when it's
consumed from the resulting stream.
- peekLast(Consumer<? super T>) - Method in class StreamEx
-
Returns a stream consisting of the elements of this stream, additionally
performing the provided action on the last stream element when it's
consumed from the resulting stream.
- peekValues(Consumer<? super V>) - Method in class EntryStream
-
Returns a stream consisting of the entries of this stream, additionally
performing the provided action on each entry value as entries are
consumed from the resulting stream.
- prefix(BinaryOperator<T>) - Method in class AbstractStreamEx
-
Returns a stream containing cumulative results of applying the
accumulation function going left to right.
- prefix(DoubleBinaryOperator) - Method in class DoubleStreamEx
-
Returns a stream containing cumulative results of applying the
accumulation function going left to right.
- prefix(IntBinaryOperator) - Method in class IntStreamEx
-
Returns a stream containing cumulative results of applying the
accumulation function going left to right.
- prefix(LongBinaryOperator) - Method in class LongStreamEx
-
Returns a stream containing cumulative results of applying the
accumulation function going left to right.
- prefixKeys(BinaryOperator<K>) - Method in class EntryStream
-
Returns a new EntryStream which values are the same as this
stream values and keys are the results of applying the accumulation
function to this stream keys, going left to right.
- prefixValues(BinaryOperator<V>) - Method in class EntryStream
-
Returns a new EntryStream which keys are the same as this stream
keys and values are the results of applying the accumulation function to
this stream values, going left to right.
- prepend(Stream<? extends T>) - Method in class AbstractStreamEx
-
Creates a lazily concatenated stream whose elements are all the elements
of the other stream followed by all the elements of this stream.
- prepend(double...) - Method in class DoubleStreamEx
-
Returns a new
DoubleStreamEx which is a concatenation of the
stream containing supplied values and this stream
This is a
quasi-intermediate
operation.
- prepend(DoubleStream) - Method in class DoubleStreamEx
-
Creates a lazily concatenated stream whose elements are all the elements
of the other stream followed by all the elements of this stream.
- prepend(Map<K, V>) - Method in class EntryStream
-
Returns a new EntryStream which is a concatenation of the stream
created from the supplied map entries and this stream.
- prepend(K, V) - Method in class EntryStream
-
Returns a new EntryStream which is a concatenation of the
supplied key-value pair and this stream.
- prepend(K, V, K, V) - Method in class EntryStream
-
Returns a new EntryStream which is a concatenation of two
supplied key-value pairs and this stream.
- prepend(K, V, K, V, K, V) - Method in class EntryStream
-
Returns a new EntryStream which is a concatenation of three
supplied key-value pairs and this stream.
- prepend(int...) - Method in class IntStreamEx
-
Returns a new
IntStreamEx which is a concatenation of the stream
containing supplied values and this stream
This is a
quasi-intermediate
operation.
- prepend(IntStream) - Method in class IntStreamEx
-
Creates a lazily concatenated stream whose elements are all the elements
of the other stream followed by all the elements of this stream.
- prepend(long...) - Method in class LongStreamEx
-
Returns a new
LongStreamEx which is a concatenation of the stream
containing supplied values and this stream
This is a
quasi-intermediate
operation.
- prepend(LongStream) - Method in class LongStreamEx
-
Creates a lazily concatenated stream whose elements are all the elements
of the other stream followed by all the elements of this stream.
- prepend(T...) - Method in class StreamEx
-
Returns a new StreamEx which is a concatenation of supplied
values and this stream.
- prepend(T) - Method in class StreamEx
-
Returns a new StreamEx which is a concatenation of supplied value
and this stream.
- prepend(Collection<? extends T>) - Method in class StreamEx
-
Returns a new StreamEx which is a concatenation of the stream
created from supplied collection and this stream.
- produce(Predicate<DoubleConsumer>) - Static method in class DoubleStreamEx
-
Return an ordered stream produced by consecutive calls of the supplied
producer until it returns false.
- produce(Predicate<IntConsumer>) - Static method in class IntStreamEx
-
Return an ordered stream produced by consecutive calls of the supplied
producer until it returns false.
- produce(Predicate<LongConsumer>) - Static method in class LongStreamEx
-
Return an ordered stream produced by consecutive calls of the supplied
producer until it returns false.
- produce(Predicate<Consumer<? super T>>) - Static method in class StreamEx
-
Return an ordered stream produced by consecutive calls of the supplied
producer until it returns false.
- range(int) - Static method in class IntStreamEx
-
Returns a sequential ordered IntStreamEx from 0 (inclusive) to
endExclusive (exclusive) by an incremental step of 1.
- range(int, int) - Static method in class IntStreamEx
-
Returns a sequential ordered IntStreamEx from
startInclusive (inclusive) to endExclusive (exclusive) by
an incremental step of 1.
- range(int, int, int) - Static method in class IntStreamEx
-
Returns a sequential ordered IntStreamEx from
startInclusive (inclusive) to endExclusive (exclusive) by
the specified incremental step.
- range(long) - Static method in class LongStreamEx
-
Returns a sequential ordered LongStreamEx from 0 (inclusive) to
endExclusive (exclusive) by an incremental step of 1.
- range(long, long) - Static method in class LongStreamEx
-
Returns a sequential ordered LongStreamEx from
startInclusive (inclusive) to endExclusive (exclusive) by
an incremental step of 1.
- range(long, long, long) - Static method in class LongStreamEx
-
Returns a sequential ordered LongStreamEx from
startInclusive (inclusive) to endExclusive (exclusive) by
the specified incremental step.
- rangeClosed(int, int) - Static method in class IntStreamEx
-
Returns a sequential ordered IntStreamEx from
startInclusive (inclusive) to endInclusive (inclusive) by
an incremental step of 1.
- rangeClosed(int, int, int) - Static method in class IntStreamEx
-
Returns a sequential ordered IntStreamEx from
startInclusive (inclusive) to endInclusive (inclusive) by
the specified incremental step.
- rangeClosed(long, long) - Static method in class LongStreamEx
-
Returns a sequential ordered LongStreamEx from
startInclusive (inclusive) to endInclusive (inclusive) by
an incremental step of 1.
- rangeClosed(long, long, long) - Static method in class LongStreamEx
-
Returns a sequential ordered LongStreamEx from
startInclusive (inclusive) to endInclusive (inclusive) by
the specified incremental step.
- reduce(T, BinaryOperator<T>) - Method in class AbstractStreamEx
-
- reduce(BinaryOperator<T>) - Method in class AbstractStreamEx
-
- reduce(U, BiFunction<U, ? super T, U>, BinaryOperator<U>) - Method in class AbstractStreamEx
-
- reduce(double, DoubleBinaryOperator) - Method in class DoubleStreamEx
-
- reduce(DoubleBinaryOperator) - Method in class DoubleStreamEx
-
- reduce(int, IntBinaryOperator) - Method in class IntStreamEx
-
- reduce(IntBinaryOperator) - Method in class IntStreamEx
-
- reduce(long, LongBinaryOperator) - Method in class LongStreamEx
-
- reduce(LongBinaryOperator) - Method in class LongStreamEx
-
- reducing(DoubleBinaryOperator) - Static method in interface DoubleCollector
-
Returns a
DoubleCollector which performs a reduction of its input
numbers under a specified
DoubleBinaryOperator.
- reducing(double, DoubleBinaryOperator) - Static method in interface DoubleCollector
-
Returns a DoubleCollector which performs a reduction of its input
numbers under a specified IntBinaryOperator using the provided
identity.
- reducing(IntBinaryOperator) - Static method in interface IntCollector
-
Returns an
IntCollector which performs a reduction of its input
numbers under a specified
IntBinaryOperator.
- reducing(int, IntBinaryOperator) - Static method in interface IntCollector
-
Returns an IntCollector which performs a reduction of its input
numbers under a specified IntBinaryOperator using the provided
identity.
- reducing(LongBinaryOperator) - Static method in interface LongCollector
-
Returns a
LongCollector which performs a reduction of its input
numbers under a specified
LongBinaryOperator.
- reducing(long, LongBinaryOperator) - Static method in interface LongCollector
-
Returns a LongCollector which performs a reduction of its input
numbers under a specified IntBinaryOperator using the provided
identity.
- remove(Predicate<? super T>) - Method in class AbstractStreamEx
-
Returns a stream consisting of the elements of this stream that don't
match the given predicate.
- remove(DoublePredicate) - Method in class DoubleStreamEx
-
Returns a stream consisting of the elements of this stream that don't
match the given predicate.
- remove(IntPredicate) - Method in class IntStreamEx
-
Returns a stream consisting of the elements of this stream that don't
match the given predicate.
- remove(LongPredicate) - Method in class LongStreamEx
-
Returns a stream consisting of the elements of this stream that don't
match the given predicate.
- removeBy(Function<? super T, ? extends K>, K) - Method in class StreamEx
-
Returns a stream consisting of the elements of this stream except those
for which the supplied mapper function returns the given value.
- removeKeys(Predicate<? super K>) - Method in class EntryStream
-
Returns a stream consisting of the elements of this stream which keys
don't match the given predicate.
- removeKeyValue(BiPredicate<? super K, ? super V>) - Method in class EntryStream
-
Returns a stream consisting of the elements of this stream which values
don't match the given predicate.
- removeValues(Predicate<? super V>) - Method in class EntryStream
-
Returns a stream consisting of the elements of this stream which values
don't match the given predicate.
- reverseSorted(Comparator<? super T>) - Method in class AbstractStreamEx
-
Returns a stream consisting of the elements of this stream, sorted in
descending order according to the provided Comparator.
- reverseSorted() - Method in class DoubleStreamEx
-
Returns a stream consisting of the elements of this stream in reverse
sorted order.
- reverseSorted() - Method in class IntStreamEx
-
Returns a stream consisting of the elements of this stream in reverse
sorted order.
- reverseSorted() - Method in class LongStreamEx
-
Returns a stream consisting of the elements of this stream in reverse
sorted order.
- reverseSorted() - Method in class StreamEx
-
Returns a StreamEx consisting of the elements of this stream,
sorted according to reverse natural order.
- runLengths() - Method in class StreamEx
-
Collapses adjacent equal elements and returns an
EntryStream
where keys are input elements and values specify how many elements were
collapsed.
- scanLeft(U, BiFunction<U, ? super T, U>) - Method in class AbstractStreamEx
-
Produces a list containing cumulative results of applying the
accumulation function going left to right using given seed value.
- scanLeft(BinaryOperator<T>) - Method in class AbstractStreamEx
-
Produces a list containing cumulative results of applying the
accumulation function going left to right.
- scanLeft(DoubleBinaryOperator) - Method in class DoubleStreamEx
-
Produces an array containing cumulative results of applying the
accumulation function going left to right.
- scanLeft(double, DoubleBinaryOperator) - Method in class DoubleStreamEx
-
Produces an array containing cumulative results of applying the
accumulation function going left to right using given seed value.
- scanLeft(IntBinaryOperator) - Method in class IntStreamEx
-
Produces an array containing cumulative results of applying the
accumulation function going left to right.
- scanLeft(int, IntBinaryOperator) - Method in class IntStreamEx
-
Produces an array containing cumulative results of applying the
accumulation function going left to right using given seed value.
- scanLeft(LongBinaryOperator) - Method in class LongStreamEx
-
Produces an array containing cumulative results of applying the
accumulation function going left to right.
- scanLeft(long, LongBinaryOperator) - Method in class LongStreamEx
-
Produces an array containing cumulative results of applying the
accumulation function going left to right using given seed value.
- scanRight(U, BiFunction<? super T, U, U>) - Method in class AbstractStreamEx
-
Produces a list containing cumulative results of applying the
accumulation function going right to left using given seed value.
- scanRight(BinaryOperator<T>) - Method in class AbstractStreamEx
-
Produces a collection containing cumulative results of applying the
accumulation function going right to left.
- select(Class<TT>) - Method in class StreamEx
-
Returns a stream consisting of the elements of this stream which are
instances of given class.
- selectKeys(Class<KK>) - Method in class EntryStream
-
Returns a stream consisting of the elements of this stream which keys are
instances of given class.
- selectValues(Class<VV>) - Method in class EntryStream
-
Returns a stream consisting of the elements of this stream which values
are instances of given class.
- sequential() - Method in class AbstractStreamEx
-
- sequential() - Method in class DoubleStreamEx
-
- sequential() - Method in class IntStreamEx
-
- sequential() - Method in class LongStreamEx
-
- skip(long) - Method in class AbstractStreamEx
-
- skip(long) - Method in class DoubleStreamEx
-
- skip(long) - Method in class IntStreamEx
-
- skip(long) - Method in class LongStreamEx
-
- skipOrdered(long) - Method in class AbstractStreamEx
-
Returns a stream consisting of the remaining elements of this stream
after discarding the first n elements of the stream even if the
stream is unordered.
- skipOrdered(long) - Method in class DoubleStreamEx
-
Returns a stream consisting of the remaining elements of this stream
after discarding the first n elements of the stream.
- skipOrdered(long) - Method in class IntStreamEx
-
Returns a stream consisting of the remaining elements of this stream
after discarding the first n elements of the stream.
- skipOrdered(long) - Method in class LongStreamEx
-
Returns a stream consisting of the remaining elements of this stream
after discarding the first n elements of the stream.
- sorted() - Method in class AbstractStreamEx
-
- sorted(Comparator<? super T>) - Method in class AbstractStreamEx
-
- sorted() - Method in class DoubleStreamEx
-
- sorted(Comparator<Double>) - Method in class DoubleStreamEx
-
Returns a stream consisting of the elements of this stream sorted
according to the given comparator.
- sorted() - Method in class IntStreamEx
-
- sorted(Comparator<Integer>) - Method in class IntStreamEx
-
Returns a stream consisting of the elements of this stream sorted
according to the given comparator.
- sorted() - Method in class LongStreamEx
-
- sorted(Comparator<Long>) - Method in class LongStreamEx
-
Returns a stream consisting of the elements of this stream sorted
according to the given comparator.
- sortedBy(Function<? super T, ? extends V>) - Method in class AbstractStreamEx
-
Returns a stream consisting of the elements of this stream, sorted
according to the natural order of the keys extracted by provided
function.
- sortedBy(DoubleFunction<V>) - Method in class DoubleStreamEx
-
Returns a stream consisting of the elements of this stream, sorted
according to the natural order of the keys extracted by provided
function.
- sortedBy(IntFunction<V>) - Method in class IntStreamEx
-
Returns a stream consisting of the elements of this stream, sorted
according to the natural order of the keys extracted by provided
function.
- sortedBy(LongFunction<V>) - Method in class LongStreamEx
-
Returns a stream consisting of the elements of this stream, sorted
according to the natural order of the keys extracted by provided
function.
- sortedByDouble(ToDoubleFunction<? super T>) - Method in class AbstractStreamEx
-
Returns a stream consisting of the elements of this stream, sorted
according to the double values extracted by provided function.
- sortedByDouble(DoubleUnaryOperator) - Method in class DoubleStreamEx
-
Returns a stream consisting of the elements of this stream, sorted
according to the double values extracted by provided function.
- sortedByDouble(IntToDoubleFunction) - Method in class IntStreamEx
-
Returns a stream consisting of the elements of this stream, sorted
according to the double values extracted by provided function.
- sortedByDouble(LongToDoubleFunction) - Method in class LongStreamEx
-
Returns a stream consisting of the elements of this stream, sorted
according to the double values extracted by provided function.
- sortedByInt(ToIntFunction<? super T>) - Method in class AbstractStreamEx
-
Returns a stream consisting of the elements of this stream, sorted
according to the int values extracted by provided function.
- sortedByInt(DoubleToIntFunction) - Method in class DoubleStreamEx
-
Returns a stream consisting of the elements of this stream, sorted
according to the int values extracted by provided function.
- sortedByInt(IntUnaryOperator) - Method in class IntStreamEx
-
Returns a stream consisting of the elements of this stream, sorted
according to the int values extracted by provided function.
- sortedByInt(LongToIntFunction) - Method in class LongStreamEx
-
Returns a stream consisting of the elements of this stream, sorted
according to the int values extracted by provided function.
- sortedByLong(ToLongFunction<? super T>) - Method in class AbstractStreamEx
-
Returns a stream consisting of the elements of this stream, sorted
according to the long values extracted by provided function.
- sortedByLong(DoubleToLongFunction) - Method in class DoubleStreamEx
-
Returns a stream consisting of the elements of this stream, sorted
according to the long values extracted by provided function.
- sortedByLong(IntToLongFunction) - Method in class IntStreamEx
-
Returns a stream consisting of the elements of this stream, sorted
according to the long values extracted by provided function.
- sortedByLong(LongUnaryOperator) - Method in class LongStreamEx
-
Returns a stream consisting of the elements of this stream, sorted
according to the long values extracted by provided function.
- split(CharSequence, Pattern) - Static method in class StreamEx
-
Creates a stream from the given input sequence around matches of the
given pattern.
- split(CharSequence, String) - Static method in class StreamEx
-
Creates a stream from the given input sequence around matches of the
given pattern represented as String.
- split(CharSequence, char) - Static method in class StreamEx
-
Creates a stream from the given input sequence around matches of the
given character.
- split(CharSequence, char, boolean) - Static method in class StreamEx
-
Creates a stream from the given input sequence around matches of the
given character.
- spliterator() - Method in interface DoubleStreamEx.DoubleEmitter
-
Returns the spliterator which covers all the elements emitted by this
emitter.
- spliterator() - Method in interface IntStreamEx.IntEmitter
-
Returns the spliterator which covers all the elements emitted by this
emitter.
- spliterator() - Method in interface LongStreamEx.LongEmitter
-
Returns the spliterator which covers all the elements emitted by this
emitter.
- spliterator() - Method in interface StreamEx.Emitter
-
Returns the spliterator which covers all the elements emitted by this
emitter.
- stream() - Method in interface DoubleStreamEx.DoubleEmitter
-
Returns the stream which covers all the elements emitted by this
emitter.
- stream() - Method in interface IntStreamEx.IntEmitter
-
Returns the stream which covers all the elements emitted by this
emitter.
- stream() - Method in interface LongStreamEx.LongEmitter
-
Returns the stream which covers all the elements emitted by this
emitter.
- stream() - Method in interface StreamEx.Emitter
-
Returns the stream which covers all the elements emitted by this
emitter.
- StreamEx<T> - Class in one.util.streamex
-
A
Stream implementation with additional functionality.
- StreamEx.Emitter<T> - Interface in one.util.streamex
-
A helper interface to build a new stream by emitting elements and
creating new emitters in a chain.
- sum() - Method in class DoubleStreamEx
-
- sum() - Method in class IntStreamEx
-
- sum() - Method in class LongStreamEx
-
- summarizing() - Static method in interface DoubleCollector
-
Returns a DoubleCollector which returns summary statistics for
the input elements.
- summarizing() - Static method in interface IntCollector
-
Returns an IntCollector which returns summary statistics for the
input elements.
- summarizing() - Static method in interface LongCollector
-
Returns a LongCollector which returns summary statistics for the
input elements.
- summaryStatistics() - Method in class DoubleStreamEx
-
- summaryStatistics() - Method in class IntStreamEx
-
- summaryStatistics() - Method in class LongStreamEx
-
- summing() - Static method in interface DoubleCollector
-
Returns a DoubleCollector that produces the sum of the input
elements.
- summing() - Static method in interface IntCollector
-
Returns an IntCollector that produces the sum of the input
elements.
- summing() - Static method in interface LongCollector
-
Returns a LongCollector that produces the sum of the input
elements.
- supplier() - Method in class Joining
-
- tail(int) - Static method in class MoreCollectors
-
Returns a
Collector which collects at most specified number of
the last stream elements into the
List.
- takeWhile(Predicate<? super T>) - Method in class AbstractStreamEx
-
Returns a stream consisting of all elements from this stream until the
first element which does not match the given predicate is found.
- takeWhile(DoublePredicate) - Method in class DoubleStreamEx
-
Returns a stream consisting of all elements from this stream until the
first element which does not match the given predicate is found.
- takeWhile(IntPredicate) - Method in class IntStreamEx
-
Returns a stream consisting of all elements from this stream until the
first element which does not match the given predicate is found.
- takeWhile(LongPredicate) - Method in class LongStreamEx
-
Returns a stream consisting of all elements from this stream until the
first element which does not match the given predicate is found.
- takeWhileInclusive(Predicate<? super T>) - Method in class AbstractStreamEx
-
Returns a stream consisting of all elements from this stream until the
first element which does not match the given predicate is found
(including the first mismatching element).
- takeWhileInclusive(DoublePredicate) - Method in class DoubleStreamEx
-
Returns a stream consisting of all elements from this stream until the
first element which does not match the given predicate is found
(including the first mismatching element).
- takeWhileInclusive(IntPredicate) - Method in class IntStreamEx
-
Returns a stream consisting of all elements from this stream until the
first element which does not match the given predicate is found
(including the first mismatching element).
- takeWhileInclusive(LongPredicate) - Method in class LongStreamEx
-
Returns a stream consisting of all elements from this stream until the
first element which does not match the given predicate is found
(including the first mismatching element).
- toArray() - Method in class AbstractStreamEx
-
- toArray(IntFunction<A[]>) - Method in class AbstractStreamEx
-
- toArray() - Static method in interface DoubleCollector
-
Returns a DoubleCollector that produces the array of the input
elements.
- toArray() - Method in class DoubleStreamEx
-
- toArray() - Static method in interface IntCollector
-
Returns an IntCollector that produces the array of the input
elements.
- toArray() - Method in class IntStreamEx
-
- toArray() - Static method in interface LongCollector
-
Returns a LongCollector that produces the array of the input
elements.
- toArray() - Method in class LongStreamEx
-
- toArray(IntFunction<T[]>) - Static method in class MoreCollectors
-
Returns a Collector that accumulates the input elements into a
new array.
- toArray(Class<A>) - Method in class StreamEx
-
Returns an array containing all the stream elements using the supplied
element type class to allocate an array.
- toArray(A[]) - Method in class StreamEx
-
Returns an array containing all the stream elements.
- toBitSet() - Static method in interface IntCollector
-
Returns an
IntCollector that produces the
BitSet of the
input elements.
- toBitSet() - Method in class IntStreamEx
-
Returns a
BitSet containing the elements of this stream.
- toBooleanArray(DoublePredicate) - Static method in interface DoubleCollector
-
Returns a DoubleCollector which produces a boolean array
containing the results of applying the given predicate to the input
elements, in encounter order.
- toBooleanArray(IntPredicate) - Static method in interface IntCollector
-
Returns an IntCollector which produces a boolean array containing
the results of applying the given predicate to the input elements, in
encounter order.
- toBooleanArray(LongPredicate) - Static method in interface LongCollector
-
Returns a LongCollector which produces a boolean array containing
the results of applying the given predicate to the input elements, in
encounter order.
- toBooleanArray(Predicate<T>) - Static method in class MoreCollectors
-
Returns a Collector which produces a boolean array containing the
results of applying the given predicate to the input elements, in
encounter order.
- toByteArray() - Static method in interface IntCollector
-
Returns an IntCollector that produces the byte[] array of
the input elements converting them via (byte) casting.
- toByteArray() - Method in class IntStreamEx
-
Returns a byte[] array containing the elements of this stream
which are converted to bytes using (byte) cast operation.
- toCharArray() - Static method in interface IntCollector
-
Returns an IntCollector that produces the char[] array of
the input elements converting them via (char) casting.
- toCharArray() - Method in class IntStreamEx
-
Returns a char[] array containing the elements of this stream
which are converted to chars using (char) cast operation.
- toCollection(Supplier<C>) - Method in class AbstractStreamEx
-
Returns a
Collection containing the elements of this stream.
- toCustomMap(Supplier<M>) - Method in class EntryStream
-
Returns a
Map containing the elements of this stream.
- toCustomMap(BinaryOperator<V>, Supplier<M>) - Method in class EntryStream
-
Returns a
Map containing the elements of this stream.
- toEnumSet(Class<T>) - Static method in class MoreCollectors
-
Returns a Collector that accumulates the input enum values into a
new EnumSet.
- toFlatCollection(Function<? super T, ? extends Collection<U>>, Supplier<C>) - Method in class StreamEx
-
Returns a collection created by provided supplier function which contains
all the elements of the collections generated by provided mapper from
each element of this stream.
- toFlatList(Function<? super T, ? extends Collection<U>>) - Method in class StreamEx
-
Returns a
List which contains all the elements of the collections
generated by provided mapper from each element of this stream.
- toFloatArray() - Static method in interface DoubleCollector
-
Returns a DoubleCollector that produces the float[] array
of the input elements converting them via (float) casting.
- toFloatArray() - Method in class DoubleStreamEx
-
Returns a float[] array containing the elements of this stream
which are converted to floats using (float) cast operation.
- toImmutableList() - Method in class AbstractStreamEx
-
Returns an immutable
List containing the elements of this stream.
- toImmutableMap() - Method in class EntryStream
-
Returns an immutable
Map containing the elements of this stream.
- toImmutableSet() - Method in class AbstractStreamEx
-
Returns an immutable
Set containing the elements of this stream.
- toList() - Method in class AbstractStreamEx
-
Returns a
List containing the elements of this stream.
- toListAndThen(Function<? super List<T>, R>) - Method in class AbstractStreamEx
-
Creates a
List containing the elements of this stream, then
performs finishing transformation and returns its result.
- toMap() - Method in class EntryStream
-
Returns a
Map containing the elements of this stream.
- toMap(BinaryOperator<V>) - Method in class EntryStream
-
Returns a
Map containing the elements of this stream.
- toMap(Function<? super T, ? extends V>) - Method in class StreamEx
-
Returns a
Map whose keys are elements from this stream and values
are the result of applying the provided mapping functions to the input
elements.
- toMap(Function<? super T, ? extends K>, Function<? super T, ? extends V>) - Method in class StreamEx
-
Returns a
Map whose keys and values are the result of applying
the provided mapping functions to the input elements.
- toMap(Function<? super T, ? extends K>, Function<? super T, ? extends V>, BinaryOperator<V>) - Method in class StreamEx
-
Returns a
Map whose keys and values are the result of applying
the provided mapping functions to the input elements.
- toMapAndThen(Function<? super Map<K, V>, R>) - Method in class EntryStream
-
Creates a
Map containing the elements of this stream, then
performs finishing transformation and returns its result.
- toNavigableMap() - Method in class EntryStream
-
Returns a
NavigableMap containing the elements of this stream.
- toNavigableMap(BinaryOperator<V>) - Method in class EntryStream
-
Returns a
NavigableMap containing the elements of this stream.
- toNavigableMap(Function<? super T, ? extends V>) - Method in class StreamEx
-
Returns a
NavigableMap whose keys are elements from this stream and
values are the result of applying the provided mapping functions to the
input elements.
- toNavigableMap(Function<? super T, ? extends K>, Function<? super T, ? extends V>) - Method in class StreamEx
-
Returns a
NavigableMap whose keys and values are the result of
applying the provided mapping functions to the input elements.
- toNavigableMap(Function<? super T, ? extends K>, Function<? super T, ? extends V>, BinaryOperator<V>) - Method in class StreamEx
-
Returns a
NavigableMap whose keys and values are the result of
applying the provided mapping functions to the input elements.
- toSet() - Method in class AbstractStreamEx
-
Returns a
Set containing the elements of this stream.
- toSetAndThen(Function<? super Set<T>, R>) - Method in class AbstractStreamEx
-
Creates a
Set containing the elements of this stream, then
performs finishing transformation and returns its result.
- toShortArray() - Static method in interface IntCollector
-
Returns an IntCollector that produces the short[] array
of the input elements converting them via (short) casting.
- toShortArray() - Method in class IntStreamEx
-
Returns a short[] array containing the elements of this stream
which are converted to shorts using (short) cast operation.
- toSortedMap() - Method in class EntryStream
-
Returns a
SortedMap containing the elements of this stream.
- toSortedMap(BinaryOperator<V>) - Method in class EntryStream
-
Returns a
SortedMap containing the elements of this stream.
- toSortedMap(Function<? super T, ? extends V>) - Method in class StreamEx
-
Returns a
SortedMap whose keys are elements from this stream and
values are the result of applying the provided mapping functions to the
input elements.
- toSortedMap(Function<? super T, ? extends K>, Function<? super T, ? extends V>) - Method in class StreamEx
-
Returns a
SortedMap whose keys and values are the result of
applying the provided mapping functions to the input elements.
- toSortedMap(Function<? super T, ? extends K>, Function<? super T, ? extends V>, BinaryOperator<V>) - Method in class StreamEx
-
Returns a
SortedMap whose keys and values are the result of
applying the provided mapping functions to the input elements.