Package | Description |
---|---|
com.annimon.stream |
Modifier and Type | Method and Description |
---|---|
static LongStream |
LongStream.concat(long[] a,
long[] b) |
static LongStream |
LongStream.concat(LongStream a,
LongStream b)
Concatenates two streams.
|
LongStream |
LongStream.distinct()
Returns a stream consisting of the distinct elements of this stream.
|
LongStream |
LongStream.dropWhile(LongPredicate predicate)
Drops elements while the predicate is true and returns the rest.
|
static LongStream |
LongStream.empty()
Returns an empty stream.
|
LongStream |
LongStream.filter(LongPredicate predicate)
Returns
LongStream with elements that satisfy the given predicate. |
LongStream |
LongStream.flatMap(LongFunction<? extends LongStream> mapper)
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 element.
|
LongStream |
Stream.flatMapToLong(Function<? super T,? extends LongStream> mapper)
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 element.
|
static LongStream |
LongStream.generate(LongSupplier s)
Creates a
LongStream by elements that generated by LongSupplier . |
static LongStream |
LongStream.iterate(long seed,
LongPredicate predicate,
LongUnaryOperator op)
Creates an
LongStream by iterative application LongUnaryOperator function
to an initial element seed , conditioned on satisfying the supplied predicate. |
static LongStream |
LongStream.iterate(long seed,
LongUnaryOperator f)
Creates a
LongStream by iterative application LongUnaryOperator function
to an initial element seed . |
LongStream |
LongStream.limit(long maxSize)
Returns a stream consisting of the elements of this stream, truncated
to be no longer than
maxSize in length. |
LongStream |
LongStream.map(LongUnaryOperator mapper)
Returns an
LongStream consisting of the results of applying the given
function to the elements of this stream. |
LongStream |
DoubleStream.mapToLong(DoubleToLongFunction mapper)
Returns an
LongStream consisting of the results of applying the given
function to the elements of this stream. |
LongStream |
IntStream.mapToLong(IntToLongFunction mapper)
Returns a
LongStream consisting of the results of applying the given
function to the elements of this stream. |
LongStream |
Stream.mapToLong(ToLongFunction<? super T> mapper)
Returns
LongStream with elements that obtained by applying the given function. |
static LongStream |
LongStream.of(long... values)
Creates a
LongStream from the specified values. |
static LongStream |
LongStream.of(com.annimon.stream.iterator.PrimitiveIterator.OfLong iterator)
Creates a
LongStream from PrimitiveIterator.OfLong . |
LongStream |
LongStream.onClose(java.lang.Runnable closeHandler)
Adds close handler to the current stream.
|
LongStream |
LongStream.peek(LongConsumer action)
Performs provided action on each element.
|
static LongStream |
LongStream.range(long startInclusive,
long endExclusive)
Returns a sequential ordered
LongStream from startInclusive
(inclusive) to endExclusive (exclusive) by an incremental step of
1 . |
static LongStream |
LongStream.range(long startInclusive,
long endExclusive,
long by) |
static LongStream |
LongStream.rangeClosed(long startInclusive,
long endInclusive)
Returns a sequential ordered
LongStream from startInclusive
(inclusive) to endInclusive (inclusive) by an incremental step of
1 . |
static LongStream |
LongStream.rangeClosed(long startInclusive,
long endInclusive,
long by) |
LongStream |
LongStream.scan(LongBinaryOperator accumulator)
Returns a
LongStream produced by iterative application of a accumulation function
to reduction value and next element of the current stream. |
LongStream |
LongStream.scan(long identity,
LongBinaryOperator accumulator)
Returns a
LongStream produced by iterative application of a accumulation function
to an initial element identity and next element of the current stream. |
LongStream |
LongStream.skip(long n)
Skips first
n elements and returns LongStream with remaining elements. |
LongStream |
LongStream.sorted()
Returns a stream consisting of the elements of this stream in sorted order.
|
LongStream |
LongStream.sorted(java.util.Comparator<java.lang.Long> comparator)
Returns a stream consisting of the elements of this stream
in sorted order as determinated by provided
Comparator . |
LongStream |
OptionalLong.stream()
Wraps a value into
LongStream if present,
otherwise returns an empty LongStream . |
LongStream |
LongStream.takeUntil(LongPredicate stopPredicate)
Takes elements while the predicate returns
false . |
LongStream |
LongStream.takeWhile(LongPredicate predicate)
Takes elements while the predicate returns
true . |
Modifier and Type | Method and Description |
---|---|
static LongStream |
LongStream.concat(LongStream a,
LongStream b)
Concatenates two streams.
|
Modifier and Type | Method and Description |
---|---|
<R> R |
LongStream.chain(Function<LongStream,R> function)
Applies custom operator on stream.
|
LongStream |
LongStream.flatMap(LongFunction<? extends LongStream> mapper)
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 element.
|
LongStream |
Stream.flatMapToLong(Function<? super T,? extends LongStream> mapper)
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 element.
|