| Modifier and Type | Method and Description |
|---|---|
LongStreamEx |
LongStreamEx.append(long... values)
Returns a new
LongStreamEx which is a concatenation of this
stream and the stream containing supplied values
This is a quasi-intermediate
operation. |
LongStreamEx |
LongStreamEx.append(LongStream other)
Creates a lazily concatenated stream whose elements are all the elements
of this stream followed by all the elements of the other stream.
|
LongStreamEx |
IntStreamEx.asLongStream() |
LongStreamEx |
LongStreamEx.atLeast(long value)
Returns a stream consisting of the elements of this stream that greater
than or equal to the specified value.
|
LongStreamEx |
LongStreamEx.atMost(long value)
Returns a stream consisting of the elements of this stream that less than
or equal to the specified value.
|
static LongStreamEx |
LongStreamEx.constant(long value,
long length)
Returns a sequential unordered
LongStreamEx of given length which
elements are equal to supplied value. |
LongStreamEx |
LongStreamEx.distinct() |
LongStreamEx |
LongStreamEx.dropWhile(LongPredicate predicate)
Returns a stream consisting of all elements from this stream starting
from the first element which does not match the given predicate.
|
LongStreamEx |
IntStreamEx.elements(long[] array)
Returns a
LongStreamEx consisting of the elements of given array
corresponding to the indices which appear in this stream. |
static LongStreamEx |
LongStreamEx.empty()
Returns an empty sequential
LongStreamEx. |
LongStreamEx |
LongStreamEx.filter(LongPredicate predicate) |
LongStreamEx |
LongStreamEx.flatMap(LongFunction<? extends LongStream> mapper) |
LongStreamEx |
DoubleStreamEx.flatMapToLong(DoubleFunction<? extends LongStream> mapper)
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. |
LongStreamEx |
AbstractStreamEx.flatMapToLong(Function<? super T,? extends LongStream> mapper) |
LongStreamEx |
IntStreamEx.flatMapToLong(IntFunction<? extends LongStream> mapper)
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. |
static LongStreamEx |
LongStreamEx.generate(LongSupplier s)
Returns an infinite sequential unordered stream where each element is
generated by the provided
LongSupplier. |
LongStreamEx |
LongStreamEx.greater(long value)
Returns a stream consisting of the elements of this stream that strictly
greater than the specified value.
|
static LongStreamEx |
LongStreamEx.iterate(long seed,
LongPredicate predicate,
LongUnaryOperator f)
Returns a sequential ordered
LongStreamEx produced by iterative
application of a function to an initial element, conditioned on
satisfying the supplied predicate. |
static LongStreamEx |
LongStreamEx.iterate(long seed,
LongUnaryOperator f)
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 |
LongStreamEx.less(long value)
Returns a stream consisting of the elements of this stream that strictly
less than the specified value.
|
LongStreamEx |
LongStreamEx.limit(long maxSize) |
static LongStreamEx |
LongStreamEx.longs()
Returns a sequential ordered
LongStreamEx from 0 (inclusive) to
Long.MAX_VALUE (exclusive) by an incremental step of 1. |
LongStreamEx |
LongStreamEx.map(LongUnaryOperator mapper) |
LongStreamEx |
LongStreamEx.mapFirst(LongUnaryOperator 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.
|
LongStreamEx |
LongStreamEx.mapLast(LongUnaryOperator mapper)
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 |
DoubleStreamEx.mapToLong(DoubleToLongFunction mapper) |
LongStreamEx |
IntStreamEx.mapToLong(IntToLongFunction mapper) |
LongStreamEx |
AbstractStreamEx.mapToLong(ToLongFunction<? super T> mapper) |
static LongStreamEx |
LongStreamEx.of(Collection<Long> collection)
Returns a sequential ordered
LongStreamEx whose elements are the
unboxed elements of supplied collection. |
static LongStreamEx |
LongStreamEx.of(long... elements)
Returns a sequential ordered
LongStreamEx whose elements are the
specified values. |
static LongStreamEx |
LongStreamEx.of(long element)
Returns a sequential
LongStreamEx containing a single element. |
static LongStreamEx |
LongStreamEx.of(Long[] array)
Returns a sequential ordered
LongStreamEx whose elements are the
unboxed elements of supplied array. |
static LongStreamEx |
LongStreamEx.of(long[] array,
int startInclusive,
int endExclusive)
Returns a sequential
LongStreamEx with the specified range of the
specified array as its source. |
static LongStreamEx |
LongStreamEx.of(LongBuffer buf)
Returns a sequential ordered
LongStreamEx whose elements are the
values in the supplied LongBuffer. |
static LongStreamEx |
LongStreamEx.of(LongStream stream)
Returns a
LongStreamEx object which wraps given
LongStream. |
static LongStreamEx |
LongStreamEx.of(OptionalLong optional)
Returns a sequential
LongStreamEx containing an
OptionalLong value, if present, otherwise returns an empty
LongStreamEx. |
static LongStreamEx |
LongStreamEx.of(PrimitiveIterator.OfLong iterator)
Returns a sequential, ordered
LongStreamEx created from given
PrimitiveIterator.OfLong. |
static LongStreamEx |
LongStreamEx.of(Random random)
Returns an effectively unlimited stream of pseudorandom
long
values produced by given Random object. |
static LongStreamEx |
LongStreamEx.of(Random random,
long streamSize)
Returns a stream producing the given
streamSize number of
pseudorandom long values. |
static LongStreamEx |
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). |
static LongStreamEx |
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). |
static LongStreamEx |
LongStreamEx.of(Spliterator.OfLong spliterator)
Returns a sequential
LongStreamEx created from given
Spliterator.OfLong. |
LongStreamEx |
LongStreamEx.onClose(Runnable closeHandler) |
LongStreamEx |
LongStreamEx.pairMap(LongBinaryOperator mapper)
Returns a stream consisting of the results of applying the given function
to the every adjacent pair of elements of this stream.
|
LongStreamEx |
LongStreamEx.parallel() |
LongStreamEx |
LongStreamEx.parallel(ForkJoinPool fjp) |
LongStreamEx |
LongStreamEx.peek(LongConsumer action) |
LongStreamEx |
LongStreamEx.peekFirst(LongConsumer action)
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.
|
LongStreamEx |
LongStreamEx.peekLast(LongConsumer action)
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.
|
LongStreamEx |
LongStreamEx.prefix(LongBinaryOperator op)
Returns a stream containing cumulative results of applying the
accumulation function going left to right.
|
LongStreamEx |
LongStreamEx.prepend(long... values)
Returns a new
LongStreamEx which is a concatenation of the stream
containing supplied values and this stream
This is a quasi-intermediate
operation. |
LongStreamEx |
LongStreamEx.prepend(LongStream other)
Creates a lazily concatenated stream whose elements are all the elements
of the other stream followed by all the elements of this stream.
|
static LongStreamEx |
LongStreamEx.produce(Predicate<LongConsumer> producer)
Return an ordered stream produced by consecutive calls of the supplied
producer until it returns false.
|
static LongStreamEx |
LongStreamEx.range(long endExclusive)
Returns a sequential ordered
LongStreamEx from 0 (inclusive) to
endExclusive (exclusive) by an incremental step of 1. |
static LongStreamEx |
LongStreamEx.range(long startInclusive,
long endExclusive)
Returns a sequential ordered
LongStreamEx from
startInclusive (inclusive) to endExclusive (exclusive) by
an incremental step of 1. |
static LongStreamEx |
LongStreamEx.range(long startInclusive,
long endExclusive,
long step)
Returns a sequential ordered
LongStreamEx from
startInclusive (inclusive) to endExclusive (exclusive) by
the specified incremental step. |
static LongStreamEx |
LongStreamEx.rangeClosed(long startInclusive,
long endInclusive)
Returns a sequential ordered
LongStreamEx from
startInclusive (inclusive) to endInclusive (inclusive) by
an incremental step of 1. |
static LongStreamEx |
LongStreamEx.rangeClosed(long startInclusive,
long endInclusive,
long step)
Returns a sequential ordered
LongStreamEx from
startInclusive (inclusive) to endInclusive (inclusive) by
the specified incremental step. |
LongStreamEx |
LongStreamEx.remove(LongPredicate predicate)
Returns a stream consisting of the elements of this stream that don't
match the given predicate.
|
LongStreamEx |
LongStreamEx.reverseSorted()
Returns a stream consisting of the elements of this stream in reverse
sorted order.
|
LongStreamEx |
LongStreamEx.sequential() |
LongStreamEx |
LongStreamEx.skip(long n) |
LongStreamEx |
LongStreamEx.skipOrdered(long n)
Returns a stream consisting of the remaining elements of this stream
after discarding the first
n elements of the stream. |
LongStreamEx |
LongStreamEx.sorted() |
LongStreamEx |
LongStreamEx.sorted(Comparator<Long> comparator)
Returns a stream consisting of the elements of this stream sorted
according to the given comparator.
|
<V extends Comparable<? super V>> |
LongStreamEx.sortedBy(LongFunction<V> keyExtractor)
Returns a stream consisting of the elements of this stream, sorted
according to the natural order of the keys extracted by provided
function.
|
LongStreamEx |
LongStreamEx.sortedByDouble(LongToDoubleFunction keyExtractor)
Returns a stream consisting of the elements of this stream, sorted
according to the double values extracted by provided function.
|
LongStreamEx |
LongStreamEx.sortedByInt(LongToIntFunction keyExtractor)
Returns a stream consisting of the elements of this stream, sorted
according to the int values extracted by provided function.
|
LongStreamEx |
LongStreamEx.sortedByLong(LongUnaryOperator keyExtractor)
Returns a stream consisting of the elements of this stream, sorted
according to the long values extracted by provided function.
|
default LongStreamEx |
LongStreamEx.LongEmitter.stream()
Returns the stream which covers all the elements emitted by this
emitter.
|
LongStreamEx |
LongStreamEx.takeWhile(LongPredicate predicate)
Returns a stream consisting of all elements from this stream until the
first element which does not match the given predicate is found.
|
LongStreamEx |
LongStreamEx.takeWhileInclusive(LongPredicate predicate)
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).
|
LongStreamEx |
LongStreamEx.unordered() |
LongStreamEx |
LongStreamEx.without(long... values)
Returns a stream consisting of the elements of this stream that don't
equal to any of the supplied values.
|
LongStreamEx |
LongStreamEx.without(long value)
Returns a stream consisting of the elements of this stream that don't
equal to the given value.
|
static LongStreamEx |
LongStreamEx.zip(long[] first,
long[] second,
LongBinaryOperator mapper)
Returns a sequential
LongStreamEx containing the results of
applying the given function to the corresponding pairs of values in given
two arrays. |
| Modifier and Type | Method and Description |
|---|---|
<U> U |
LongStreamEx.chain(Function<? super LongStreamEx,U> mapper) |
Copyright © 2017. All rights reserved.