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