| Package | Description |
|---|---|
| com.annimon.stream | |
| com.annimon.stream.function | |
| com.annimon.stream.internal | |
| com.annimon.stream.operator |
| Modifier and Type | Method and Description |
|---|---|
IntStream |
IntStream.flatMap(IntFunction<? extends IntStream> 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> |
IntStream.mapToObj(IntFunction<? extends R> mapper)
Returns a
Stream consisting of the results of applying the given
function to the elements of this stream. |
<U> Optional<U> |
OptionalInt.mapToObj(IntFunction<U> mapper)
Invokes mapping function on inner value if present.
|
<R> R[] |
Stream.toArray(IntFunction<R[]> generator)
Collects elements to an array, the
generator constructor of provided. |
| Modifier and Type | Method and Description |
|---|---|
static <R> IntFunction<R> |
IntFunction.Util.safe(ThrowableIntFunction<? extends R,Throwable> throwableFunction)
Creates a safe
IntFunction, |
static <R> IntFunction<R> |
IntFunction.Util.safe(ThrowableIntFunction<? extends R,Throwable> throwableFunction,
R resultIfFailed)
Creates a safe
IntFunction, |
| Modifier and Type | Method and Description |
|---|---|
static <R> IndexedIntFunction<R> |
IndexedIntFunction.Util.wrap(IntFunction<? extends R> function)
Wraps
IntFunction and returns IndexedIntFunction. |
| Modifier and Type | Method and Description |
|---|---|
static <T,R> R[] |
Operators.toArray(Iterator<? extends T> iterator,
IntFunction<R[]> generator) |
| Constructor and Description |
|---|
IntFlatMap(PrimitiveIterator.OfInt iterator,
IntFunction<? extends IntStream> mapper) |
IntMapToObj(PrimitiveIterator.OfInt iterator,
IntFunction<? extends R> mapper) |
Copyright © 2018. All rights reserved.