Returns a new StreamEx which is a concatenation of this stream
and the stream created from supplied collection.
Returns a new StreamEx which is a concatenation of this stream
and the supplied value.
Returns a new StreamEx which is a concatenation of this stream
and the supplied values.
Returns a new
StreamEx which elements are
List objects
containing all possible n-tuples of the elements of supplied collection.
Returns a new StreamEx which elements are results of reduction of
all possible n-tuples composed of the elements of supplied collections.
Returns a new
StreamEx which elements are
List objects
containing all possible tuples of the elements of supplied collection of
collections.
Returns a new StreamEx which elements are results of reduction of
all possible tuples composed of the elements of supplied collection of
collections.
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.
Merge series of adjacent elements which satisfy the given predicate using
the merger function and return a new stream.
Perform a partial mutable reduction using the supplied
Collector
on a series of adjacent elements.
Returns a sequential unordered StreamEx of given length which
elements are equal to supplied value.
Returns an object-valued
StreamEx consisting of the elements of
given
List corresponding to the indices which appear in this
stream.
Returns an object-valued
StreamEx consisting of the elements of
given array corresponding to the indices which appear in this stream.
Returns an empty sequential StreamEx.
Returns a stream consisting of the elements of this stream for which the
supplied mapper function returns the given value.
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.
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.
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.
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.
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.
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.
Returns an infinite sequential unordered
StreamEx where each
element is generated by the provided
Supplier.
Returns a stream consisting of lists of elements of this stream where
adjacent elements are grouped according to supplied predicate.
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).
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.
Returns a stream whose content is the same as this stream, except the case when
this stream is empty.
Returns a stream consisting of results of applying the given function to
the intervals created from the source elements.
Returns a sequential ordered StreamEx produced by iterative
application of a function to an initial element, conditioned on
satisfying the supplied predicate.
Returns an infinite sequential ordered StreamEx produced by
iterative application of a function f to an initial element
seed, producing a StreamEx consisting of seed,
f(seed), f(f(seed)), etc.
Returns a
StreamEx of strings which are created joining the keys
and values of the current stream using the specified delimiter.
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.
Returns a stream consisting of the keys of this stream elements.
AbstractStreamEx.map(Function<? super T, ? extends R> mapper)
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.
Returns a stream where the first element is transformed using
firstMapper function and other elements are transformed using
notFirstMapper function.
Returns a
StreamEx consisting of the results of applying the
given function to the keys and values of this stream.
Performs a mapping of the stream keys and values to a partial function
removing the elements to which the function is not applicable.
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.
Returns a stream where the last element is transformed using
lastMapper function and other elements are transformed using
notLastMapper function.
Returns a stream where every element of this stream is replaced by elements produced
by a mapper function.
Performs a mapping of the stream content to a partial function
removing the elements to which the function is not applicable.
Returns a sequential StreamEx with given collection as its
source.
Returns a sequential
StreamEx containing an
Optional
value, if present, otherwise returns an empty
StreamEx.
Returns a sequential StreamEx containing a single element.
StreamEx.of(T... elements)
Returns a sequential ordered StreamEx whose elements are the
specified values.
StreamEx.of(T[] array,
int startInclusive,
int endExclusive)
Returns a sequential
StreamEx with the specified range of the
specified array as its source.
Returns a new StreamEx of int[] arrays containing all the possible combinations of length
k consisting of numbers from 0 to n-1 in lexicographic order.
Returns a sequential
StreamEx with keySet of given
Map as
its source.
Returns a sequential
StreamEx of given
Map keys which
corresponding values match the supplied filter.
Returns a
StreamEx, the elements of which are lines read from the
supplied
BufferedReader.
Returns a
StreamEx, the elements of which are lines read from the
supplied
Reader.
Read all lines from a file as a StreamEx.
Read all lines from a file as a StreamEx.
Returns a sequential StreamEx containing a single element, if
non-null, otherwise returns an empty 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.
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.
Returns a new StreamEx of int[] arrays containing all the
possible permutations of numbers from 0 to length-1 in lexicographic
order.
Returns a sequential StreamEx which elements are elements of
given list in descending order.
Returns a sequential StreamEx which elements are elements of
given array in descending order.
Returns a new StreamEx which consists of non-overlapping sublists
of given source list having the specified length (the last sublist may be
shorter).
Returns a new StreamEx which consists of possibly-overlapping
sublists of given source list having the specified length with given
shift value.
Return a new
StreamEx containing all the nodes of tree-like data
structure in depth-first order.
Return a new
StreamEx containing all the nodes of tree-like data
structure in depth-first order.
Returns a sequential
StreamEx with values of given
Map as
its source.
Returns a sequential
StreamEx of given
Map values which
corresponding keys match the supplied filter.
Returns a stream consisting of the results of applying the given function
to the every adjacent pair of elements of this stream.
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.
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.
Returns a new StreamEx which is a concatenation of the stream
created from supplied collection and this stream.
Returns a new StreamEx which is a concatenation of supplied value
and this stream.
Returns a new StreamEx which is a concatenation of supplied
values and this stream.
Return an ordered stream produced by consecutive calls of the supplied
producer until it returns false.
Returns a stream consisting of the elements of this stream except those
for which the supplied mapper function returns the given value.
Returns a StreamEx consisting of the elements of this stream,
sorted according to reverse natural order.
Returns a stream consisting of the elements of this stream which are
instances of given class.
Creates a stream from the given input sequence around matches of the
given character.
Creates a stream from the given input sequence around matches of the
given character.
Creates a stream from the given input sequence around matches of the
given pattern represented as String.
Creates a stream from the given input sequence around matches of the
given pattern.
Returns the stream which covers all the elements emitted by this
emitter.
Returns a stream consisting of the values of this stream elements.
Returns a stream consisting of the results of applying the given function
to the first element and every single element of this stream.
Returns a stream consisting of the elements of this stream that don't
equal to the given value.
Returns a stream consisting of the elements of this stream that don't
equal to any of the supplied values.
Returns a sequential StreamEx containing the results of applying
the given function to the corresponding pairs of values in given two
lists.
StreamEx.zip(U[] first,
V[] second,
BiFunction<? super U, ? super V, ? extends T> mapper)
Returns a sequential StreamEx containing the results of applying
the given function to the corresponding pairs of values in given two
arrays.
Creates a new
StreamEx which is the result of applying of the
mapper
BiFunction to the corresponding elements of this stream
and the supplied other stream.
Creates a new
StreamEx which is the result of applying of the
mapper
BiFunction to the corresponding elements of this stream
and the supplied other stream.