LongStreamEx.append(long... values)
Returns a new LongStreamEx
which is a concatenation of this
stream and the stream containing supplied values
Creates a lazily concatenated stream whose elements are all the elements
of this stream followed by all the elements of the other stream.
Returns a stream consisting of the elements of this stream that greater
than or equal to the specified value.
LongStreamEx.atMost(long value)
Returns a stream consisting of the elements of this stream that less than
or equal to the specified value.
LongStreamEx.constant(long value,
long length)
Returns a sequential unordered LongStreamEx
of given length which
elements are equal to supplied value.
Returns a stream consisting of all elements from this stream starting
from the first element which does not match the given predicate.
Returns a
LongStreamEx
consisting of the elements of given array
corresponding to the indices which appear in this stream.
Returns an empty sequential LongStreamEx
.
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.
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.
Returns an infinite sequential unordered stream where each element is
generated by the provided LongSupplier
.
Returns a stream consisting of the elements of this stream that strictly
greater than the specified value.
Returns a new stream containing all the elements of the original stream interspersed with
given delimiter.
Returns a sequential ordered LongStreamEx
produced by iterative
application of a function to an initial element, conditioned on
satisfying the supplied predicate.
Returns an infinite sequential ordered LongStreamEx
produced by
iterative application of a function f
to an initial element
seed
, producing a stream consisting of seed
,
f(seed)
, f(f(seed))
, etc.
LongStreamEx.less(long value)
Returns a stream consisting of the elements of this stream that strictly
less than the specified value.
LongStreamEx.limit(long maxSize)
Returns a sequential ordered LongStreamEx
from 0 (inclusive) to
Long.MAX_VALUE
(exclusive) by an incremental step of 1
.
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 last element is the replaced with the result
of applying the given function while the other elements are left intact.
LongStreamEx.of(long element)
Returns a sequential LongStreamEx
containing a single element.
LongStreamEx.of(long... elements)
Returns a sequential ordered LongStreamEx
whose elements are the
specified values.
LongStreamEx.of(long[] array,
int startInclusive,
int endExclusive)
Returns a sequential
LongStreamEx
with the specified range of the
specified array as its source.
Returns a sequential ordered LongStreamEx
whose elements are the
unboxed elements of supplied array.
Returns a sequential ordered
LongStreamEx
whose elements are the
values in the supplied
LongBuffer
.
Returns a sequential ordered LongStreamEx
whose elements are the
unboxed elements of supplied collection.
Returns a sequential
LongStreamEx
containing an
OptionalLong
value, if present, otherwise returns an empty
LongStreamEx
.
Returns an effectively unlimited stream of pseudorandom
long
values produced by given
Random
object.
LongStreamEx.of(Random random,
long streamSize)
Returns a stream producing the given streamSize
number of
pseudorandom long
values.
LongStreamEx.of(Random random,
long randomNumberOrigin,
long randomNumberBound)
Returns an effectively unlimited stream of pseudorandom long
values, each conforming to the given origin (inclusive) and bound
(exclusive).
LongStreamEx.of(Random random,
long streamSize,
long randomNumberOrigin,
long randomNumberBound)
Returns a stream producing the given streamSize
number of
pseudorandom long
values, each conforming to the given origin
(inclusive) and bound (exclusive).
Returns a
LongStreamEx
object which wraps given
LongStream
.
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 stream containing cumulative results of applying the
accumulation function going left to right.
LongStreamEx.prepend(long... values)
Returns a new LongStreamEx
which is a concatenation of the stream
containing supplied values and this stream
Creates a lazily concatenated stream whose elements are all the elements
of the other stream followed by all the elements of this stream.
Return an ordered stream produced by consecutive calls of the supplied
producer until it returns false.
LongStreamEx.range(long endExclusive)
Returns a sequential ordered LongStreamEx
from 0 (inclusive) to
endExclusive
(exclusive) by an incremental step of 1
.
LongStreamEx.range(long startInclusive,
long endExclusive)
Returns a sequential ordered LongStreamEx
from
startInclusive
(inclusive) to endExclusive
(exclusive) by
an incremental step of 1
.
LongStreamEx.range(long startInclusive,
long endExclusive,
long step)
Returns a sequential ordered LongStreamEx
from
startInclusive
(inclusive) to endExclusive
(exclusive) by
the specified incremental step.
LongStreamEx.rangeClosed(long startInclusive,
long endInclusive)
Returns a sequential ordered LongStreamEx
from
startInclusive
(inclusive) to endInclusive
(inclusive) by
an incremental step of 1
.
LongStreamEx.rangeClosed(long startInclusive,
long endInclusive,
long step)
Returns a sequential ordered LongStreamEx
from
startInclusive
(inclusive) to endInclusive
(inclusive) by
the specified incremental step.
Returns a stream consisting of the elements of this stream that don't
match the given predicate.
Returns a stream consisting of the elements of this stream in reverse
sorted order.
LongStreamEx.skip(long n)
Returns a stream consisting of the elements of this stream sorted
according to the given comparator.
Returns a stream consisting of the elements of this stream, sorted
according to the natural order of the keys extracted by provided
function.
Returns a stream consisting of the elements of this stream, sorted
according to the double values extracted by provided function.
Returns a stream consisting of the elements of this stream, sorted
according to the int values extracted by provided function.
Returns a stream consisting of the elements of this stream, sorted
according to the long values extracted by provided function.
LongStreamEx.LongEmitter.stream()
Returns the stream which covers all the elements emitted by this
emitter.
Returns a stream consisting of all elements from this stream until the
first element which does not match the given predicate is found.
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).
Returns a stream consisting of the elements of this stream that don't
equal to the given value.
LongStreamEx.without(long... values)
Returns a stream consisting of the elements of this stream that don't
equal to any of the supplied values.
Returns a sequential LongStreamEx
containing the results of
applying the given function to the corresponding pairs of values in given
two arrays.