| Package | Description |
|---|---|
| com.annimon.stream |
| Modifier and Type | Method and Description |
|---|---|
static OptionalInt |
OptionalInt.empty()
Returns an empty
OptionalInt instance. |
OptionalInt |
OptionalInt.executeIfAbsent(Runnable action)
Invokes action function if value is absent.
|
OptionalInt |
OptionalInt.executeIfPresent(IntConsumer consumer)
Invokes consumer function with value if present.
|
OptionalInt |
OptionalInt.filter(IntPredicate predicate)
Performs filtering on inner value if present.
|
OptionalInt |
IntStream.findFirst()
Returns an
OptionalInt describing the first element of this
stream, or an empty OptionalInt if the stream is empty. |
OptionalInt |
IntStream.findSingle()
Returns the single element wrapped by
OptionalInt class. |
OptionalInt |
OptionalInt.map(IntUnaryOperator mapper)
Invokes mapping function on inner value if present.
|
OptionalInt |
OptionalDouble.mapToInt(DoubleToIntFunction mapper)
Invokes the given mapping function on inner value if present.
|
OptionalInt |
OptionalLong.mapToInt(LongToIntFunction mapper)
Invokes the given mapping function on inner value if present.
|
OptionalInt |
Optional.mapToInt(ToIntFunction<? super T> mapper)
Invokes the given mapping function on inner value if present.
|
OptionalInt |
IntStream.max()
Returns an
OptionalInt describing the maximum element of this
stream, or an empty optional if this stream is empty. |
OptionalInt |
IntStream.min()
Returns an
OptionalInt describing the minimum element of this
stream, or an empty optional if this stream is empty. |
static OptionalInt |
OptionalInt.of(int value)
Return an
OptionalInt with the specified value present. |
OptionalInt |
OptionalInt.or(Supplier<OptionalInt> supplier)
Returns current
OptionalInt if value is present, otherwise
returns an OptionalInt produced by supplier function. |
OptionalInt |
IntStream.reduce(IntBinaryOperator op)
Performs a reduction on the elements of this stream, using an
associative accumulation function, and returns an
OptionalInt
describing the reduced value, if any. |
| Modifier and Type | Method and Description |
|---|---|
OptionalInt |
OptionalInt.or(Supplier<OptionalInt> supplier)
Returns current
OptionalInt if value is present, otherwise
returns an OptionalInt produced by supplier function. |
Copyright © 2017. All rights reserved.