A B C D E F G H I J K L M N O P R S T U V W Z
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- AbstractStreamEx<T,S extends AbstractStreamEx<T,S>> - Class in one.util.streamex
-
Base class providing common functionality for
StreamEx
andEntryStream
. - 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(BiPredicate<? super K, ? super V>) - Method in class EntryStream
-
Returns whether all elements of this stream match the provided predicate.
- allMatch(DoublePredicate) - Method in class DoubleStreamEx
- allMatch(IntPredicate) - Method in class IntStreamEx
- allMatch(LongPredicate) - Method in class LongStreamEx
- allMatch(Predicate<? super T>) - Method in class AbstractStreamEx
- 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(BiPredicate<? super K, ? super V>) - Method in class EntryStream
-
Returns whether any elements of this stream match the provided predicate.
- anyMatch(DoublePredicate) - Method in class DoubleStreamEx
- anyMatch(IntPredicate) - Method in class IntStreamEx
- anyMatch(LongPredicate) - Method in class LongStreamEx
- anyMatch(Predicate<? super T>) - Method in class AbstractStreamEx
- append(double...) - Method in class DoubleStreamEx
-
Returns a new
DoubleStreamEx
which is a concatenation of this stream and the stream containing supplied values - append(int...) - Method in class IntStreamEx
-
Returns a new
IntStreamEx
which is a concatenation of this stream and the stream containing supplied values - append(long...) - Method in class LongStreamEx
-
Returns a new
LongStreamEx
which is a concatenation of this stream and the stream containing supplied values - 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. - 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(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(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(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(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(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(T) - Method in class StreamEx
-
Returns a new
StreamEx
which is a concatenation of this stream and the supplied value. - append(T...) - Method in class StreamEx
-
Returns a new
StreamEx
which is a concatenation of this stream and the supplied values. - asByteInputStream() - Method in class IntStreamEx
-
Returns an
InputStream
lazily populated from the currentIntStreamEx
. - 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.
B
- boxed() - Method in class DoubleStreamEx
- boxed() - Method in class IntStreamEx
- boxed() - Method in class LongStreamEx
C
- cartesianPower(int, Collection<T>) - Static method in class StreamEx
-
Returns a new
StreamEx
which elements areList
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 areList
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 DoubleStreamEx, U>) - Method in class DoubleStreamEx
- chain(Function<? super IntStreamEx, U>) - Method in class IntStreamEx
- chain(Function<? super LongStreamEx, U>) - Method in class LongStreamEx
- chain(Function<? super S, U>) - Method in class AbstractStreamEx
- 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>) - 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.
- 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. - 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(Supplier<R>, ObjDoubleConsumer<R>, BiConsumer<R, R>) - Method in class DoubleStreamEx
- collect(Supplier<R>, ObjIntConsumer<R>, BiConsumer<R, R>) - Method in class IntStreamEx
- collect(Supplier<R>, ObjLongConsumer<R>, BiConsumer<R, R>) - Method in class LongStreamEx
- collect(Collector<? super T, A, R>) - Method in class AbstractStreamEx
- 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(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(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 inputCharSequence
objects returning the result asString
. - commonSuffix() - Static method in class MoreCollectors
-
Returns a
Collector
which computes a common suffix of inputCharSequence
objects returning the result asString
. - 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 asLong
. - counting() - Static method in interface IntCollector
-
Returns an
IntCollector
that counts the number of input elements and returns the result asLong
. - counting() - Static method in interface LongCollector
-
Returns a
LongCollector
that counts the number of input elements and returns the result asLong
. - countingInt() - Static method in interface DoubleCollector
-
Returns an
DoubleCollector
that counts the number of input elements and returns the result asInteger
. - countingInt() - Static method in interface IntCollector
-
Returns an
IntCollector
that counts the number of input elements and returns the result asInteger
. - countingInt() - Static method in interface LongCollector
-
Returns an
LongCollector
that counts the number of input elements and returns the result asInteger
. - countingInt() - Static method in class MoreCollectors
-
Returns a
Collector
accepting elements of typeT
that counts the number of input elements and returns result asInteger
. - 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. - cross(V...) - Method in class StreamEx
-
Performs a cross product of current stream with specified array of elements.
- 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.
D
- distinct() - Method in class AbstractStreamEx
- distinct() - Method in class DoubleStreamEx
- distinct() - Method in class IntStreamEx
- distinct() - Method in class LongStreamEx
- distinct(long) - Method in class AbstractStreamEx
-
Returns a
StreamEx
consisting of the distinct elements (according toObject.equals(Object)
) which appear at least specified number of times in this stream. - distinct(Function<? super T, ?>) - Method in class AbstractStreamEx
-
Returns a stream consisting of the distinct elements of this stream (according to object equality of the results of applying the given function).
- distinctBy(Function<? super T, ?>) - Static method in class MoreCollectors
-
Returns a
Collector
which collects into theList
the input elements for which given mapper function returns distinct results. - distinctCount(Function<? super T, ?>) - Static method in class MoreCollectors
-
Returns a
Collector
which counts a number of distinct values the mapper function returns for the stream elements. - distinctKeys() - Method in class EntryStream
-
Returns a stream consisting of the elements of this stream which have distinct keys (according to object equality).
- distinctValues() - Method in class EntryStream
-
Returns a stream consisting of the elements of this stream which have distinct values (according to object equality).
- dominators(BiPredicate<? super T, ? super T>) - Static method in class MoreCollectors
-
Returns a collector which collects input elements into
List
removing the elements following their dominator element. - doubleAccumulator() - Method in interface DoubleCollector
-
A function that folds a value into a mutable result container.
- DoubleCollector<A,R> - Interface in one.util.streamex
-
A
Collector
specialized to work with primitivedouble
. - DoubleStreamEx - Class in one.util.streamex
-
A
DoubleStream
implementation with additional functionality - DoubleStreamEx.DoubleEmitter - Interface in one.util.streamex
-
A helper interface to build a new stream by emitting elements and creating new emitters in a chain.
- dropWhile(DoublePredicate) - Method in class DoubleStreamEx
-
Returns a stream consisting of all elements from this stream starting from the first element which does not match the given predicate.
- dropWhile(IntPredicate) - Method in class IntStreamEx
-
Returns a stream consisting of all elements from this stream starting from the first element which does not match the given predicate.
- dropWhile(LongPredicate) - Method in class LongStreamEx
-
Returns a stream consisting of all elements from this stream starting from the first element which does not match the given predicate.
- dropWhile(Predicate<? super T>) - Method in class AbstractStreamEx
-
Returns a stream consisting of all elements from this stream starting from the first element which does not match the given predicate.
E
- elements(double[]) - Method in class IntStreamEx
-
Returns a
DoubleStreamEx
consisting of the elements of given array corresponding to the indices which appear in this stream. - elements(int[]) - Method in class IntStreamEx
-
Returns an
IntStreamEx
consisting of the elements of given array corresponding to the indices which appear in this stream. - elements(long[]) - Method in class IntStreamEx
-
Returns a
LongStreamEx
consisting of the elements of given array corresponding to the indices which appear in this stream. - elements(List<U>) - Method in class IntStreamEx
- elements(U[]) - Method in class IntStreamEx
-
Returns an object-valued
StreamEx
consisting of the elements of given array corresponding to the indices which appear in this stream. - ellipsis(CharSequence) - Method in class Joining
-
Returns a
Collector
which behaves like this collector, but uses the specified ellipsisCharSequence
instead of default"..."
when the string limit (if specified) is reached. - empty() - Static method in class DoubleStreamEx
-
Returns an empty sequential
DoubleStreamEx
. - empty() - Static method in class EntryStream
-
Returns an empty sequential
EntryStream
. - empty() - Static method in class IntStreamEx
-
Returns an empty sequential
IntStreamEx
. - empty() - Static method in class LongStreamEx
-
Returns an empty sequential
LongStreamEx
. - empty() - Static method in class StreamEx
-
Returns an empty sequential
StreamEx
. - entriesToCustomMap(BinaryOperator<V>, Supplier<M>) - Static method in class MoreCollectors
-
Returns a
Collector
that accumulates elements into a resultMap
defined bymapSupplier
function whose keys and values are taken fromMap.Entry
and combining them using the providedcombiner
function to the input elements. - entriesToCustomMap(Supplier<M>) - Static method in class MoreCollectors
-
Returns a
Collector
that accumulates elements into a resultMap
defined bymapSupplier
function whose keys and values are taken fromMap.Entry
. - entriesToMap() - Static method in class MoreCollectors
-
Returns a
Collector
that accumulates elements into aMap
whose keys and values are taken fromMap.Entry
. - entriesToMap(BinaryOperator<V>) - Static method in class MoreCollectors
-
Returns a
Collector
that accumulates elements into aMap
whose keys and values are taken fromMap.Entry
and combining them using the providedcombiner
function to the input elements. - EntryStream<K,V> - Class in one.util.streamex
F
- filter(DoublePredicate) - Method in class DoubleStreamEx
- filter(IntPredicate) - Method in class IntStreamEx
- filter(LongPredicate) - Method in class LongStreamEx
- filter(Predicate<? super T>) - Method in class AbstractStreamEx
- 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>) - Static method in class MoreCollectors
-
Returns a
Collector
which filters input elements by the supplied predicate, collecting them to the list. - 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. - 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() - Method in class DoubleStreamEx
- findAny() - Method in class IntStreamEx
- findAny() - Method in class LongStreamEx
- findAny(DoublePredicate) - Method in class DoubleStreamEx
-
Returns an
OptionalDouble
describing some element of the stream, which matches given predicate, or an emptyOptionalDouble
if there's no matching element. - findAny(IntPredicate) - Method in class IntStreamEx
-
Returns an
OptionalInt
describing some element of the stream, which matches given predicate, or an emptyOptionalInt
if there's no matching element. - findAny(LongPredicate) - Method in class LongStreamEx
-
Returns an
OptionalLong
describing some element of the stream, which matches given predicate, or an emptyOptionalLong
if there's no matching element. - findAny(Predicate<? super T>) - Method in class AbstractStreamEx
-
Returns an
Optional
describing some element of the stream, which matches given predicate, or an emptyOptional
if there's no matching element. - findFirst() - Method in class AbstractStreamEx
- findFirst() - Method in class DoubleStreamEx
- findFirst() - Method in class IntStreamEx
- findFirst() - Method in class LongStreamEx
- findFirst(DoublePredicate) - Method in class DoubleStreamEx
-
Returns an
OptionalDouble
describing the first element of this stream, which matches given predicate, or an emptyOptionalDouble
if there's no matching element. - findFirst(IntPredicate) - Method in class IntStreamEx
-
Returns an
OptionalInt
describing the first element of this stream, which matches given predicate, or an emptyOptionalInt
if there's no matching element. - findFirst(LongPredicate) - Method in class LongStreamEx
-
Returns an
OptionalLong
describing the first element of this stream, which matches given predicate, or an emptyOptionalLong
if there's no matching element. - findFirst(Predicate<? super T>) - Method in class AbstractStreamEx
-
Returns an
Optional
describing the first element of this stream, which matches given predicate, or an emptyOptional
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(DoubleFunction<? extends DoubleStream>) - Method in class DoubleStreamEx
- flatMap(Function<? super T, ? extends Stream<? extends R>>) - Method in class AbstractStreamEx
- 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>>) - 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
. - flatMapping(Function<? super T, ? extends Stream<? extends U>>, Collector<? super U, A, R>) - Static method in class MoreCollectors
-
Adapts a
Collector
accepting elements of typeU
to one accepting elements of typeT
by applying a flat mapping function to each input element before accumulation. - 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(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(Function<? super T, ? extends IntStream>) - Method in class AbstractStreamEx
- 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(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(Function<? super T, ? extends LongStream>) - Method in class AbstractStreamEx
- 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(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(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(long, LongBinaryOperator) - Method in class LongStreamEx
-
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(IntBinaryOperator) - Method in class IntStreamEx
-
Folds the elements of this stream using the provided 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(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.
- foldRight(BinaryOperator<T>) - Method in class AbstractStreamEx
-
Folds the elements of this stream using the provided accumulation function, going right to left.
- 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.
- 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.
G
- 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<? extends K>, Supplier<? extends V>) - Static method in class EntryStream
-
Returns an infinite sequential unordered
EntryStream
where each entry key is generated by the providedkeySupplier
and each entry value is generated by the providedvalueSupplier
. - generate(Supplier<T>) - Static method in class StreamEx
-
Returns an infinite sequential unordered
StreamEx
where each element is generated by the providedSupplier
. - 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(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 theList
. - 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 specifiedComparator
into theList
. - 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(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. - 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. - 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 aMap
. - 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 downstreamIntCollector
. - 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 downstreamIntCollector
. - 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 areList
s containing 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. - 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 typeT
, grouping elements according to a classification function, and then performing a reduction operation on the values associated with a given key using the specified downstreamCollector
. - 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 typeT
, grouping elements according to a classification function, and then performing a reduction operation on the values associated with a given key using the specified downstreamCollector
. - 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(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 aMap
. - 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 downstreamIntCollector
. - 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 downstreamIntCollector
. - 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 aMap
. - 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 downstreamIntCollector
. - 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 downstreamIntCollector
. - 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 typeT
, for classification function which maps input elements to the enum values. - 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. - 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. - 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.
H
- has(int) - Method in class IntStreamEx
-
Returns true if this stream contains the specified value.
- has(long) - Method in class LongStreamEx
-
Returns true if this stream contains the specified value
- has(T) - Method in class StreamEx
-
Returns true if this stream contains the specified value.
- head(int) - Static method in class MoreCollectors
-
Returns a
Collector
which collects at most specified number of the first stream elements into theList
. - headTail(BiFunction<? super T, ? super StreamEx<T>, ? extends Stream<R>>) - Method in class StreamEx
-
Creates a new Stream which is the result of applying of the mapper
BiFunction
to the first element of the current stream (head) and the stream containing the rest elements (tail). - headTail(BiFunction<? super T, ? super StreamEx<T>, ? extends Stream<R>>, Supplier<? extends Stream<R>>) - Method in class StreamEx
-
Creates a new Stream which is the result of applying of the mapper
BiFunction
to the first element of the current stream (head) and the stream containing the rest elements (tail) or supplier if the current stream is empty.
I
- ifAllMatch(Predicate<T>, Collector<T, A, R>) - Static method in class MoreCollectors
-
Returns a
Collector
which performs downstream reduction if all elements satisfy thePredicate
. - ifEmpty(Stream<? extends T>) - Method in class AbstractStreamEx
-
Returns a stream which contents is the same as this stream, except the case when this stream is empty.
- ifEmpty(T...) - Method in class StreamEx
-
Returns a stream which contents is the same as this stream, except the case when this stream is empty.
- 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 emptyOptionalLong
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 emptyOptionalLong
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 emptyOptionalLong
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 emptyOptionalLong
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 emptyOptionalLong
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 emptyOptionalLong
if there's no matching element. - 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 emptyOptionalLong
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 primitiveint
. - intersecting() - Static method in class MoreCollectors
-
Returns a
Collector
which collects the intersection of the input collections into the newly-createdSet
. - intersperse(int) - Method in class DoubleStreamEx
-
Returns a new stream containing all the elements of the original stream interspersed with given delimiter.
- intersperse(int) - Method in class IntStreamEx
-
Returns a new stream containing all the elements of the original stream interspersed with given delimiter.
- intersperse(int) - Method in class LongStreamEx
-
Returns a new stream containing all the elements of the original stream interspersed with given delimiter.
- intersperse(T) - Method in class AbstractStreamEx
-
Returns a new stream containing all the elements of the original stream interspersed with given delimiter.
- 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(C) - Method in class StreamEx
-
Drains the stream content into the supplied collection.
- into(M) - Method in class EntryStream
-
Drains the stream content into the supplied
Map
. - ints() - Static method in class IntStreamEx
-
Returns a sequential ordered
IntStreamEx
from 0 (inclusive) toInteger.MAX_VALUE
(exclusive) by an incremental step of1
. - 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, 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(double, DoubleUnaryOperator) - Static method in class DoubleStreamEx
-
Returns an infinite sequential ordered
DoubleStreamEx
produced by iterative application of a functionf
to an initial elementseed
, producing a stream consisting ofseed
,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(int, IntUnaryOperator) - Static method in class IntStreamEx
-
Returns an infinite sequential ordered
IntStreamEx
produced by iterative application of a functionf
to an initial elementseed
, producing a stream consisting ofseed
,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(long, LongUnaryOperator) - Static method in class LongStreamEx
-
Returns an infinite sequential ordered
LongStreamEx
produced by iterative application of a functionf
to an initial elementseed
, producing a stream consisting ofseed
,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. - iterate(T, UnaryOperator<T>) - Static method in class StreamEx
-
Returns an infinite sequential ordered
StreamEx
produced by iterative application of a functionf
to an initial elementseed
, producing aStreamEx
consisting ofseed
,f(seed)
,f(f(seed))
, etc. - iterator() - Method in class AbstractStreamEx
- iterator() - Method in class DoubleStreamEx
- iterator() - Method in class IntStreamEx
- iterator() - Method in class LongStreamEx
J
- join(CharSequence) - Method in class EntryStream
-
Returns a
StreamEx
of strings which are created joining the keys and values of the current stream using the specified delimiter. - join(CharSequence, CharSequence, CharSequence) - Method in class EntryStream
-
Returns a
StreamEx
of strings which are created joining the keys and values of the current stream using the specified delimiter, with the specified prefix and suffix. - joining() - Method in class StreamEx
-
Returns a
String
which is the concatenation of the results of callingString.valueOf(Object)
on each element of this stream in encounter order. - joining(CharSequence) - Static method in interface DoubleCollector
-
Returns a
DoubleCollector
that converts the input numbers to strings and concatenates them, separated by the specified delimiter, in encounter order. - joining(CharSequence) - Method in class DoubleStreamEx
-
Returns a
String
which is the concatenation of the results of callingString.valueOf(double)
on each element of this stream, separated by the specified delimiter, in encounter order. - joining(CharSequence) - Static method in interface IntCollector
-
Returns an
IntCollector
that converts the input numbers to strings and concatenates them, separated by the specified delimiter, in encounter order. - joining(CharSequence) - Method in class IntStreamEx
-
Returns a
String
which is the concatenation of the results of callingString.valueOf(int)
on each element of this stream, separated by the specified delimiter, in encounter order. - joining(CharSequence) - Static method in interface LongCollector
-
Returns a
LongCollector
that converts the input numbers to strings and concatenates them, separated by the specified delimiter, in encounter order. - joining(CharSequence) - Method in class LongStreamEx
-
Returns a
String
which is the concatenation of the results of callingString.valueOf(long)
on each element of this stream, separated by the specified delimiter, in encounter order. - joining(CharSequence) - Method in class StreamEx
-
Returns a
String
which is the concatenation of the results of callingString.valueOf(Object)
on each element of this stream, separated by the specified delimiter, in encounter order. - joining(CharSequence, CharSequence, CharSequence) - Static method in interface DoubleCollector
-
Returns a
DoubleCollector
that converts the input numbers to strings and concatenates them, separated by the specified delimiter, with the specified prefix and suffix, in encounter order. - joining(CharSequence, CharSequence, CharSequence) - Method in class DoubleStreamEx
-
Returns a
String
which is the concatenation of the results of callingString.valueOf(double)
on each element of this stream, separated by the specified delimiter, with the specified prefix and suffix in encounter order. - joining(CharSequence, CharSequence, CharSequence) - Static method in interface IntCollector
-
Returns an
IntCollector
that converts the input numbers to strings and concatenates them, separated by the specified delimiter, with the specified prefix and suffix, in encounter order. - joining(CharSequence, CharSequence, CharSequence) - Method in class IntStreamEx
-
Returns a
String
which is the concatenation of the results of callingString.valueOf(int)
on each element of this stream, separated by the specified delimiter, with the specified prefix and suffix in encounter order. - joining(CharSequence, CharSequence, CharSequence) - Static method in interface LongCollector
-
Returns a
LongCollector
that converts the input numbers to strings and concatenates them, separated by the specified delimiter, with the specified prefix and suffix, in encounter order. - joining(CharSequence, CharSequence, CharSequence) - Method in class LongStreamEx
-
Returns a
String
which is the concatenation of the results of callingString.valueOf(long)
on each element of this stream, separated by the specified delimiter, with the specified prefix and suffix in encounter order. - joining(CharSequence, CharSequence, CharSequence) - Method in class StreamEx
-
Returns a
String
which is the concatenation of the results of callingString.valueOf(Object)
on each element of this stream, separated by the specified delimiter, with the specified prefix and suffix in encounter order. - Joining - Class in one.util.streamex
-
An advanced implementation of joining
Collector
.
K
- keys() - Method in class EntryStream
-
Returns a stream consisting of the keys of this stream elements.
L
- last() - Static method in class MoreCollectors
-
Returns a
Collector
which collects only the last stream element if any. - least(int) - Static method in class MoreCollectors
-
Returns a
Collector
which collects at most specified number of the least stream elements according to the natural order into theList
. - least(Comparator<? super T>, int) - Static method in class MoreCollectors
-
Returns a
Collector
which collects at most specified number of the least stream elements according to the specifiedComparator
into theList
. - less(double) - Method in class DoubleStreamEx
-
Returns a stream consisting of the elements of this stream that strictly less than the specified value.
- less(int) - Method in class IntStreamEx
-
Returns a stream consisting of the elements of this stream that strictly less than the specified value.
- less(long) - Method in class LongStreamEx
-
Returns a stream consisting of the elements of this stream that strictly less than the specified value.
- limit(long) - Method in class AbstractStreamEx
- limit(long) - Method in class DoubleStreamEx
- limit(long) - Method in class IntStreamEx
- limit(long) - Method in class LongStreamEx
- longAccumulator() - Method in interface LongCollector
-
A function that folds a value into a mutable result container.
- LongCollector<A,R> - Interface in one.util.streamex
-
A
Collector
specialized to work with primitivelong
. - longs() - Static method in class LongStreamEx
-
Returns a sequential ordered
LongStreamEx
from 0 (inclusive) toLong.MAX_VALUE
(exclusive) by an incremental step of1
. - LongStreamEx - Class in one.util.streamex
-
A
LongStream
implementation with additional functionality - LongStreamEx.LongEmitter - Interface in one.util.streamex
-
A helper interface to build a new stream by emitting elements and creating new emitters in a chain.
M
- map(DoubleUnaryOperator) - Method in class DoubleStreamEx
- map(Function<? super T, ? extends R>) - Method in class AbstractStreamEx
- 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(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.
- 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.
- 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 usingnotFirstMapper
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. - mapKeyValuePartial(BiFunction<? super K, ? super V, ? extends Optional<? extends R>>) - Method in class EntryStream
-
Performs a mapping of the stream keys and values to a partial function removing the elements to which the function is not applicable.
- 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(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.
- 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.
- 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 usingnotLastMapper
function. - mapPartial(Function<? super T, ? extends Optional<? extends R>>) - Method in class AbstractStreamEx
-
Performs a mapping of the stream content to a partial function removing the elements to which the function is not applicable.
- 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(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. - mapping(Function<? super T, ? extends U>, Collector<? super U, A, R>) - Static method in class MoreCollectors
-
Adapts a
Collector
accepting elements of typeU
to one accepting elements of typeT
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. - mappingToObj(DoubleFunction<U>, Collector<U, A, R>) - Static method in interface DoubleCollector
-
Adapts a
Collector
accepting elements of typeU
to aDoubleCollector
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 typeU
to anIntCollector
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 typeU
to aLongCollector
by applying a mapping function to each input element before accumulation. - mapToDouble(IntToDoubleFunction) - Method in class IntStreamEx
- mapToDouble(LongToDoubleFunction) - Method in class LongStreamEx
- mapToDouble(ToDoubleFunction<? super T>) - Method in class AbstractStreamEx
- mapToEntry(DoubleFunction<? extends K>, DoubleFunction<? extends V>) - Method in class DoubleStreamEx
-
Returns an
EntryStream
consisting of theMap.Entry
objects which keys and values are results of applying the given functions 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 theMap.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 theMap.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(IntFunction<? extends K>, IntFunction<? extends V>) - Method in class IntStreamEx
-
Returns an
EntryStream
consisting of theMap.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 theMap.Entry
objects which keys and values are results of applying the given functions to the elements of this stream. - mapToInt(DoubleToIntFunction) - Method in class DoubleStreamEx
- mapToInt(LongToIntFunction) - Method in class LongStreamEx
- mapToInt(ToIntFunction<? super T>) - Method in class AbstractStreamEx
- 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. - mapToKeyPartial(BiFunction<? super K, ? super V, ? extends Optional<? extends KK>>) - Method in class EntryStream
-
Performs a mapping of the stream content to a partial function removing the entries to which the function is not applicable.
- mapToLong(DoubleToLongFunction) - Method in class DoubleStreamEx
- mapToLong(IntToLongFunction) - Method in class IntStreamEx
- mapToLong(ToLongFunction<? super T>) - Method in class AbstractStreamEx
- 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. - mapToValuePartial(BiFunction<? super K, ? super V, ? extends Optional<? extends VV>>) - Method in class EntryStream
-
Performs a mapping of the stream content to a partial function removing the entries to which the function is not applicable.
- 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() - Static method in interface DoubleCollector
-
Returns a
DoubleCollector
that produces the maximal element, described as anOptionalDouble
. - max() - Method in class DoubleStreamEx
- max() - Static method in interface IntCollector
-
Returns an
IntCollector
that produces the maximal element, described as anOptionalInt
. - max() - Method in class IntStreamEx
- max() - Static method in interface LongCollector
-
Returns a
LongCollector
that produces the maximal element, described as anOptionalLong
. - max() - Method in class LongStreamEx
- max(Comparator<? super T>) - Method in class AbstractStreamEx
- max(Comparator<Double>) - Method in class DoubleStreamEx
-
Returns the maximum element of this stream according to the provided
Comparator
. - max(Comparator<Integer>) - Method in class IntStreamEx
-
Returns the maximum element of this stream according to the provided
Comparator
. - max(Comparator<Long>) - Method in class LongStreamEx
-
Returns the maximum element of this stream according to the provided
Comparator
. - 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. - 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 specifiedComparator
. - 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 specifiedComparator
. - 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. - maxBy(DoubleFunction<V>) - Method in class DoubleStreamEx
-
Returns the maximum element of this stream according to the provided key extractor function.
- 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(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(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.
- maxByDouble(ToDoubleFunction<? super T>) - Method in class AbstractStreamEx
-
Returns the maximum element of this stream according to the double 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.
- maxByInt(ToIntFunction<? super T>) - Method in class AbstractStreamEx
-
Returns the maximum element of this stream according to the int 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.
- maxByLong(ToLongFunction<? super T>) - Method in class AbstractStreamEx
-
Returns the maximum element of this stream according to the long values extracted by provided 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. - maxElements(int) - Method in class Joining
-
Returns a
Collector
which behaves like this collector, but sets the maximal number of elements to join. - maxGraphemes(int) - Method in class Joining
-
Returns a
Collector
which behaves like this collector, but sets the maximal number of grapheme clusters. - maxIndex() - Static method in class MoreCollectors
-
Returns a
Collector
which finds the index of the maximal stream element according to the elements natural order. - maxIndex(Comparator<? super T>) - Static method in class MoreCollectors
-
Returns a
Collector
which finds the index of the maximal stream element according to the specifiedComparator
. - min() - Static method in interface DoubleCollector
-
Returns a
DoubleCollector
that produces the minimal element, described as anOptionalDouble
. - min() - Method in class DoubleStreamEx
- min() - Static method in interface IntCollector
-
Returns an
IntCollector
that produces the minimal element, described as anOptionalInt
. - min() - Method in class IntStreamEx
- min() - Static method in interface LongCollector
-
Returns a
LongCollector
that produces the minimal element, described as anOptionalLong
. - min() - Method in class LongStreamEx
- min(Comparator<? super T>) - Method in class AbstractStreamEx
- min(Comparator<Double>) - Method in class DoubleStreamEx
-
Returns the minimum element of this stream according to the provided
Comparator
. - min(Comparator<Integer>) - Method in class IntStreamEx
-
Returns the minimum element of this stream according to the provided
Comparator
. - min(Comparator<Long>) - Method in class LongStreamEx
-
Returns the minimum element of this stream according to the provided
Comparator
. - 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. - 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 specifiedComparator
. - 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 specifiedComparator
. - 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. - minBy(DoubleFunction<V>) - Method in class DoubleStreamEx
-
Returns the minimum element of this stream according to the provided key extractor function.
- 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(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(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.
- minByDouble(ToDoubleFunction<? super T>) - Method in class AbstractStreamEx
-
Returns the minimum element of this stream according to the double 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.
- minByInt(ToIntFunction<? super T>) - Method in class AbstractStreamEx
-
Returns the minimum element of this stream according to the int 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.
- minByLong(ToLongFunction<? super T>) - Method in class AbstractStreamEx
-
Returns the minimum element of this stream according to the long values extracted by provided function.
- minIndex() - Static method in class MoreCollectors
-
Returns a
Collector
which finds the index of the minimal stream element according to the elements natural order. - minIndex(Comparator<? super T>) - Static method in class MoreCollectors
-
Returns a
Collector
which finds the index of the minimal stream element according to the specifiedComparator
. - 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.
N
- next(Consumer<? super T>) - Method in interface StreamEx.Emitter
-
Calls the supplied consumer zero or more times to emit some elements, then returns the next emitter which will emit more, or null if nothing more to emit.
- next(DoubleConsumer) - Method in interface DoubleStreamEx.DoubleEmitter
-
Calls the supplied consumer zero or more times to emit some elements, then returns the next emitter which will emit more, or null if nothing more to emit.
- next(IntConsumer) - Method in interface IntStreamEx.IntEmitter
-
Calls the supplied consumer zero or more times to emit some elements, then returns the next emitter which will emit more, or null if nothing more to emit.
- next(LongConsumer) - Method in interface LongStreamEx.LongEmitter
-
Calls the supplied consumer zero or more times to emit some elements, then returns the next emitter which will emit more, or null if nothing more to emit.
- noneMatch(BiPredicate<? super K, ? super V>) - Method in class EntryStream
-
Returns whether no elements of this stream match the provided predicate.
- noneMatch(DoublePredicate) - Method in class DoubleStreamEx
- noneMatch(IntPredicate) - Method in class IntStreamEx
- noneMatch(LongPredicate) - Method in class LongStreamEx
- noneMatch(Predicate<? super T>) - Method in class AbstractStreamEx
- nonNull() - Method in class AbstractStreamEx
-
Returns a stream consisting of the elements of this stream that aren't null.
- nonNull() - Method in class StreamEx
- nonNullKeys() - Method in class EntryStream
-
Returns a stream consisting of the elements of this stream which key is not null.
- nonNullValues() - Method in class EntryStream
-
Returns a stream consisting of the elements of this stream which value is not null.
O
- 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(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(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(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(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(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 givenInputStream
. - of(Double[]) - Static method in class DoubleStreamEx
-
Returns a sequential ordered
DoubleStreamEx
whose elements are the unboxed elements of supplied array. - of(Integer[]) - Static method in class IntStreamEx
-
Returns a sequential ordered
IntStreamEx
whose elements are the unboxed elements of supplied array. - of(Long[]) - Static method in class LongStreamEx
-
Returns a sequential ordered
LongStreamEx
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 suppliedDoubleBuffer
. - of(IntBuffer) - Static method in class IntStreamEx
-
Returns a sequential ordered
IntStreamEx
whose elements are the values in the suppliedIntBuffer
. - of(LongBuffer) - Static method in class LongStreamEx
-
Returns a sequential ordered
LongStreamEx
whose elements are the values in the suppliedLongBuffer
. - of(BitSet) - Static method in class IntStreamEx
-
Returns an
IntStreamEx
of indices for which the specifiedBitSet
contains a bit in the set state. - of(Collection<? extends T>) - Static method in class StreamEx
-
Returns a sequential
StreamEx
with given collection as its source. - of(Collection<Double>) - Static method in class DoubleStreamEx
-
Returns a sequential ordered
DoubleStreamEx
whose elements are the unboxed elements of supplied collection. - of(Collection<Integer>) - Static method in class IntStreamEx
-
Returns a sequential ordered
IntStreamEx
whose elements are the unboxed elements of supplied collection. - of(Collection<Long>) - Static method in class LongStreamEx
-
Returns a sequential ordered
LongStreamEx
whose elements are the unboxed elements of supplied collection. - of(Enumeration<? extends T>) - Static method in class StreamEx
-
Returns a sequential, ordered
StreamEx
created from givenEnumeration
. - of(Supplier<A>, ObjDoubleConsumer<A>, BiConsumer<A, A>, Function<A, R>) - Static method in interface DoubleCollector
-
Returns a new
DoubleCollector
described by the givensupplier
,accumulator
,merger
, andfinisher
functions. - of(Supplier<A>, ObjIntConsumer<A>, BiConsumer<A, A>, Function<A, R>) - Static method in interface IntCollector
-
Returns a new
IntCollector
described by the givensupplier
,accumulator
,merger
, andfinisher
functions. - of(Supplier<A>, ObjLongConsumer<A>, BiConsumer<A, A>, Function<A, R>) - Static method in interface LongCollector
-
Returns a new
LongCollector
described by the givensupplier
,accumulator
,merger
, andfinisher
functions. - of(Supplier<R>, ObjDoubleConsumer<R>, BiConsumer<R, R>) - Static method in interface DoubleCollector
-
Returns a new
DoubleCollector
described by the givensupplier
,accumulator
, andmerger
functions. - of(Supplier<R>, ObjIntConsumer<R>, BiConsumer<R, R>) - Static method in interface IntCollector
-
Returns a new
IntCollector
described by the givensupplier
,accumulator
, andmerger
functions. - of(Supplier<R>, ObjLongConsumer<R>, BiConsumer<R, R>) - Static method in interface LongCollector
-
Returns a new
LongCollector
described by the givensupplier
,accumulator
, andmerger
functions. - of(Iterator<? extends Map.Entry<K, V>>) - Static method in class EntryStream
-
Returns a sequential, ordered
EntryStream
created from givenIterator
. - of(Iterator<? extends T>) - Static method in class StreamEx
- 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(Map<K, V>) - Static method in class EntryStream
-
Returns an
EntryStream
object which contains the entries of suppliedMap
. - of(Optional<? extends T>) - Static method in class StreamEx
-
Returns a sequential
StreamEx
containing anOptional
value, if present, otherwise returns an emptyStreamEx
. - of(OptionalDouble) - Static method in class DoubleStreamEx
-
Returns a sequential
DoubleStreamEx
containing anOptionalDouble
value, if present, otherwise returns an emptyDoubleStreamEx
. - of(OptionalInt) - Static method in class IntStreamEx
-
Returns a sequential
IntStreamEx
containing anOptionalInt
value, if present, otherwise returns an emptyIntStreamEx
. - of(OptionalLong) - Static method in class LongStreamEx
-
Returns a sequential
LongStreamEx
containing anOptionalLong
value, if present, otherwise returns an emptyLongStreamEx
. - of(PrimitiveIterator.OfDouble) - Static method in class DoubleStreamEx
-
Returns a sequential, ordered
DoubleStreamEx
created from givenPrimitiveIterator.OfDouble
. - of(PrimitiveIterator.OfInt) - Static method in class IntStreamEx
-
Returns a sequential, ordered
IntStreamEx
created from givenPrimitiveIterator.OfInt
. - of(PrimitiveIterator.OfLong) - Static method in class LongStreamEx
-
Returns a sequential, ordered
LongStreamEx
created from givenPrimitiveIterator.OfLong
. - 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 givenRandom
object. - of(Random) - Static method in class IntStreamEx
-
Returns an effectively unlimited stream of pseudorandom
int
values produced by givenRandom
object. - of(Random) - Static method in class LongStreamEx
-
Returns an effectively unlimited stream of pseudorandom
long
values produced by givenRandom
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 givenRandom
object. - 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) - Static method in class DoubleStreamEx
-
Returns a stream producing the given
streamSize
number of pseudorandomdouble
values, each between zero (inclusive) and one (exclusive) produced by givenRandom
object. - of(Random, long) - Static method in class IntStreamEx
-
Returns a stream producing the given
streamSize
number of pseudorandomint
values. - of(Random, long) - Static method in class LongStreamEx
-
Returns a stream producing the given
streamSize
number of pseudorandomlong
values. - of(Random, long, double, double) - Static method in class DoubleStreamEx
-
Returns a stream producing the given
streamSize
number of pseudorandomdouble
values, each conforming to the given origin (inclusive) and bound (exclusive) produced by givenRandom
object. - of(Random, long, int, int) - Static method in class IntStreamEx
-
Returns a stream producing the given
streamSize
number of pseudorandomint
values, each conforming to the given origin (inclusive) and bound (exclusive). - 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 pseudorandomlong
values, each conforming to the given origin (inclusive) and bound (exclusive). - of(Spliterator.OfDouble) - Static method in class DoubleStreamEx
-
Returns a sequential
DoubleStreamEx
created from givenSpliterator.OfDouble
. - of(Spliterator.OfInt) - Static method in class IntStreamEx
-
Returns a sequential
IntStreamEx
created from givenSpliterator.OfInt
. - of(Spliterator.OfLong) - Static method in class LongStreamEx
-
Returns a sequential
LongStreamEx
created from givenSpliterator.OfLong
. - of(Spliterator<? extends Map.Entry<K, V>>) - Static method in class EntryStream
-
Returns a sequential
EntryStream
created from givenSpliterator
. - of(Spliterator<? extends T>) - Static method in class StreamEx
-
Returns a sequential
StreamEx
created from givenSpliterator
. - of(Collector<Double, A, R>) - Static method in interface DoubleCollector
-
Adapts a
Collector
which accepts elements of typeDouble
to aDoubleCollector
. - of(Collector<Integer, A, R>) - Static method in interface IntCollector
-
Adapts a
Collector
which accepts elements of typeInteger
to anIntCollector
. - of(Collector<Long, A, R>) - Static method in interface LongCollector
-
Adapts a
Collector
which accepts elements of typeLong
to aLongCollector
. - of(DoubleStream) - Static method in class DoubleStreamEx
-
Returns a
DoubleStreamEx
object which wraps givenDoubleStream
. - of(IntStream) - Static method in class IntStreamEx
-
Returns an
IntStreamEx
object which wraps givenIntStream
. - of(LongStream) - Static method in class LongStreamEx
-
Returns a
LongStreamEx
object which wraps givenLongStream
. - of(Stream<? extends Map.Entry<K, V>>) - Static method in class EntryStream
- of(Stream<T>) - Static method in class StreamEx
- 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(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(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. - ofChars(CharSequence) - Static method in class IntStreamEx
- ofCodePoints(CharSequence) - Static method in class IntStreamEx
-
Returns an
IntStreamEx
of code point values from the suppliedCharSequence
. - ofCombinations(int, int) - Static method in class StreamEx
-
Returns a new
StreamEx
ofint[]
arrays containing all the possible combinations of lengthk
consisting of numbers from 0 ton-1
in lexicographic order. - 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. - 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(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. - ofKeys(Map<T, ?>) - Static method in class StreamEx
-
Returns a sequential
StreamEx
with keySet of givenMap
as its source. - ofKeys(Map<T, V>, Predicate<? super V>) - Static method in class StreamEx
-
Returns a sequential
StreamEx
of givenMap
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 suppliedBufferedReader
. - ofLines(Reader) - Static method in class StreamEx
-
Returns a
StreamEx
, the elements of which are lines read from the suppliedReader
. - 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 emptyStreamEx
. - 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(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(T[]) - Static method in class EntryStream
-
Returns a sequential ordered
EntryStream
containing the possible pairs of elements taken from the provided array. - 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
ofint[]
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, 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, 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. - 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, 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. - ofValues(Map<?, T>) - Static method in class StreamEx
-
Returns a sequential
StreamEx
with values of givenMap
as its source. - ofValues(Map<K, T>, Predicate<? super K>) - Static method in class StreamEx
-
Returns a sequential
StreamEx
of givenMap
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. - onlyOne(Predicate<? super T>) - Static method in class MoreCollectors
-
Returns a
Collector
which collects the stream element satisfying the predicate if there is only one such element.
P
- 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(BiFunction<? super T, ? super T, ? extends R>) - Method in class AbstractStreamEx
-
Returns a stream consisting of the results of applying the given function to the every adjacent pair of elements of this stream.
- 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.
- parallel() - Method in class AbstractStreamEx
- parallel() - Method in class DoubleStreamEx
- parallel() - Method in class IntStreamEx
- parallel() - Method in class LongStreamEx
- parallel(ForkJoinPool) - Method in class AbstractStreamEx
- parallel(ForkJoinPool) - Method in class DoubleStreamEx
- parallel(ForkJoinPool) - Method in class IntStreamEx
- parallel(ForkJoinPool) - Method in class LongStreamEx
- partitioningBy(DoublePredicate) - Static method in interface DoubleCollector
-
Returns a
DoubleCollector
which partitions the input elements according to aDoublePredicate
, and organizes them into aMap<Boolean, double[]>
. - partitioningBy(DoublePredicate, DoubleCollector<A, D>) - Static method in interface DoubleCollector
-
Returns a
DoubleCollector
which partitions the input numbers according to aDoublePredicate
, reduces the values in each partition according to anotherIntCollector
, and organizes them into aMap<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 anIntPredicate
, and organizes them into aMap<Boolean, int[]>
. - partitioningBy(IntPredicate, IntCollector<A, D>) - Static method in interface IntCollector
-
Returns an
IntCollector
which partitions the input numbers according to anIntPredicate
, reduces the values in each partition according to anotherIntCollector
, and organizes them into aMap<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 aLongPredicate
, and organizes them into aMap<Boolean, long[]>
. - partitioningBy(LongPredicate, LongCollector<A, D>) - Static method in interface LongCollector
-
Returns a
LongCollector
which partitions the input numbers according to aLongPredicate
, reduces the values in each partition according to anotherIntCollector
, and organizes them into aMap<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 aPredicate
. - 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 aPredicate
, which are reduced according to the suppliedCollector
. - partitioningBy(Predicate<? super T>, Collector<? super T, A, D>) - Static method in class MoreCollectors
-
Returns a
Collector
which partitions the input elements according to aPredicate
, reduces the values in each partition according to anotherCollector
, and organizes them into aMap<Boolean, D>
whose values are the result of the downstream reduction. - 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 aPredicate
. - 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(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.
- 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.
- 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(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.
- 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.
- 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(double...) - Method in class DoubleStreamEx
-
Returns a new
DoubleStreamEx
which is a concatenation of the stream containing supplied values 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 - prepend(long...) - Method in class LongStreamEx
-
Returns a new
LongStreamEx
which is a concatenation of the stream containing supplied values 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. - 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(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(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(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(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(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(T) - Method in class StreamEx
-
Returns a new
StreamEx
which is a concatenation of supplied value and this stream. - prepend(T...) - Method in class StreamEx
-
Returns a new
StreamEx
which is a concatenation of supplied values and this stream. - 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.
- 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.
R
- range(int) - Static method in class IntStreamEx
-
Returns a sequential ordered
IntStreamEx
from 0 (inclusive) toendExclusive
(exclusive) by an incremental step of1
. - range(int, int) - Static method in class IntStreamEx
-
Returns a sequential ordered
IntStreamEx
fromstartInclusive
(inclusive) toendExclusive
(exclusive) by an incremental step of1
. - range(int, int, int) - Static method in class IntStreamEx
-
Returns a sequential ordered
IntStreamEx
fromstartInclusive
(inclusive) toendExclusive
(exclusive) by the specified incremental step. - range(long) - Static method in class LongStreamEx
-
Returns a sequential ordered
LongStreamEx
from 0 (inclusive) toendExclusive
(exclusive) by an incremental step of1
. - range(long, long) - Static method in class LongStreamEx
-
Returns a sequential ordered
LongStreamEx
fromstartInclusive
(inclusive) toendExclusive
(exclusive) by an incremental step of1
. - range(long, long, long) - Static method in class LongStreamEx
-
Returns a sequential ordered
LongStreamEx
fromstartInclusive
(inclusive) toendExclusive
(exclusive) by the specified incremental step. - rangeClosed(int, int) - Static method in class IntStreamEx
-
Returns a sequential ordered
IntStreamEx
fromstartInclusive
(inclusive) toendInclusive
(inclusive) by an incremental step of1
. - rangeClosed(int, int, int) - Static method in class IntStreamEx
-
Returns a sequential ordered
IntStreamEx
fromstartInclusive
(inclusive) toendInclusive
(inclusive) by the specified incremental step. - rangeClosed(long, long) - Static method in class LongStreamEx
-
Returns a sequential ordered
LongStreamEx
fromstartInclusive
(inclusive) toendInclusive
(inclusive) by an incremental step of1
. - rangeClosed(long, long, long) - Static method in class LongStreamEx
-
Returns a sequential ordered
LongStreamEx
fromstartInclusive
(inclusive) toendInclusive
(inclusive) by the specified incremental step. - reduce(double, DoubleBinaryOperator) - Method in class DoubleStreamEx
- reduce(int, IntBinaryOperator) - Method in class IntStreamEx
- reduce(long, LongBinaryOperator) - Method in class LongStreamEx
- reduce(BinaryOperator<T>) - Method in class AbstractStreamEx
- reduce(DoubleBinaryOperator) - Method in class DoubleStreamEx
- reduce(IntBinaryOperator) - Method in class IntStreamEx
- reduce(LongBinaryOperator) - Method in class LongStreamEx
- reduce(T, BinaryOperator<T>) - Method in class AbstractStreamEx
- reduce(U, BiFunction<U, ? super T, U>, BinaryOperator<U>) - Method in class AbstractStreamEx
- reduceWithZero(T, BinaryOperator<T>) - Method in class AbstractStreamEx
-
Performs a possibly short-circuiting reduction of the stream elements using the provided
BinaryOperator
. - reduceWithZero(T, T, BinaryOperator<T>) - Method in class AbstractStreamEx
-
Performs a possibly short-circuiting reduction of the stream elements using the provided identity value and a
BinaryOperator
. - reducing(double, DoubleBinaryOperator) - Static method in interface DoubleCollector
-
Returns a
DoubleCollector
which performs a reduction of its input numbers under a specifiedIntBinaryOperator
using the provided identity. - reducing(int, IntBinaryOperator) - Static method in interface IntCollector
-
Returns an
IntCollector
which performs a reduction of its input numbers under a specifiedIntBinaryOperator
using the provided identity. - reducing(long, LongBinaryOperator) - Static method in interface LongCollector
-
Returns a
LongCollector
which performs a reduction of its input numbers under a specifiedIntBinaryOperator
using the provided identity. - reducing(DoubleBinaryOperator) - Static method in interface DoubleCollector
-
Returns a
DoubleCollector
which performs a reduction of its input numbers under a specifiedDoubleBinaryOperator
. - reducing(IntBinaryOperator) - Static method in interface IntCollector
-
Returns an
IntCollector
which performs a reduction of its input numbers under a specifiedIntBinaryOperator
. - reducing(LongBinaryOperator) - Static method in interface LongCollector
-
Returns a
LongCollector
which performs a reduction of its input numbers under a specifiedLongBinaryOperator
. - reducingWithZero(T, BinaryOperator<T>) - Static method in class MoreCollectors
-
Returns a
Collector
which performs a possibly short-circuiting reduction of its input elements under a specifiedBinaryOperator
. - reducingWithZero(T, T, BinaryOperator<T>) - Static method in class MoreCollectors
-
Returns a
Collector
which performs a possibly short-circuiting reduction of its input elements using the provided identity value and aBinaryOperator
. - 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.
- 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.
- 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() - 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. - 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
. - 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.
S
- 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(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(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.
- 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(IntBinaryOperator) - Method in class IntStreamEx
-
Produces an array containing cumulative results of applying the accumulation function going left to right.
- scanLeft(LongBinaryOperator) - Method in class LongStreamEx
-
Produces an array containing cumulative results of applying the accumulation function going left to right.
- 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.
- scanRight(BinaryOperator<T>) - Method in class AbstractStreamEx
-
Produces a collection containing cumulative results of applying the accumulation function going right to left.
- 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.
- 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
- sorted() - Method in class AbstractStreamEx
- sorted() - Method in class DoubleStreamEx
- sorted() - Method in class EntryStream
- sorted() - Method in class IntStreamEx
- sorted() - Method in class LongStreamEx
- sorted(Comparator<? super T>) - Method in class AbstractStreamEx
- sorted(Comparator<Double>) - Method in class DoubleStreamEx
-
Returns a stream consisting of the elements of this stream sorted according to the given comparator.
- sorted(Comparator<Integer>) - Method in class IntStreamEx
-
Returns a stream consisting of the elements of this stream sorted according to the given comparator.
- sorted(Comparator<Long>) - Method in class LongStreamEx
-
Returns a stream consisting of the elements of this stream sorted according to the given comparator.
- 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(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(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(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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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, Pattern) - Static method in class StreamEx
-
Creates a stream from the given input sequence around matches of the given pattern.
- 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
T
- tail(int) - Static method in class MoreCollectors
-
Returns a
Collector
which collects at most specified number of the last stream elements into theList
. - 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.
- 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.
- 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).
- 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).
- toArray() - 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(A[]) - Method in class StreamEx
-
Returns an array containing all the stream elements.
- 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(IntFunction<A[]>) - Method in class AbstractStreamEx
- toArray(IntFunction<T[]>) - Static method in class MoreCollectors
-
Returns a
Collector
that accumulates the input elements into a new array. - toBitSet() - Static method in interface IntCollector
-
Returns an
IntCollector
that produces theBitSet
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