| Package | Description |
|---|---|
| com.annimon.stream | |
| com.annimon.stream.function | |
| com.annimon.stream.operator |
| Modifier and Type | Method and Description |
|---|---|
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.
|
<R> Stream<R> |
LongStream.mapToObj(LongFunction<? extends R> mapper)
Returns a
Stream consisting of the results of applying the given
function to the elements of this stream. |
<U> Optional<U> |
OptionalLong.mapToObj(LongFunction<U> mapper)
Invokes the given mapping function on inner value if present.
|
| Modifier and Type | Method and Description |
|---|---|
static <R> LongFunction<R> |
LongFunction.Util.safe(ThrowableLongFunction<? extends R,Throwable> throwableFunction)
Creates a safe
LongFunction, |
static <R> LongFunction<R> |
LongFunction.Util.safe(ThrowableLongFunction<? extends R,Throwable> throwableFunction,
R resultIfFailed)
Creates a safe
LongFunction, |
| Modifier and Type | Method and Description |
|---|---|
static <R> IndexedLongFunction<R> |
IndexedLongFunction.Util.wrap(LongFunction<? extends R> function)
Wraps
LongFunction and returns IndexedLongFunction. |
| Constructor and Description |
|---|
LongFlatMap(PrimitiveIterator.OfLong iterator,
LongFunction<? extends LongStream> mapper) |
LongMapToObj(PrimitiveIterator.OfLong iterator,
LongFunction<? extends R> mapper) |
Copyright © 2018. All rights reserved.