Interface LongSupplier
- All Superinterfaces:
LongSupplier
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final LongSupplierA supplier that always returns 9223372036854775807L.static final LongSupplierA supplier that always returns -9223372036854775808L.static final LongSupplierA supplier that always returns zero. -
Method Summary
Modifier and TypeMethodDescriptionboxed()Returns a boxed version of this supplier.default LongSupplierhandle(ToLongFunction<RuntimeException> handler) Returns a new supplier that delegates to this supplier using the specified exception handler.static LongSupplierof(long value) Returns a supplier of the specified value.default RunnerthenAccept(LongConsumer consumer) Returns a runner that accepts the value returned by this supplier via the specified consumer.default <V> Supplier<V> thenApply(LongFunction<V> function) Returns a supplier that applies the specified function to the value returned by this supplier.default DoubleSupplierthenApplyAsDouble(LongToDoubleFunction function) Returns a supplier that applies the specified function to the value returned by this supplier.default IntSupplierthenApplyAsInt(LongToIntFunction function) Returns a supplier that applies the specified function to the value returned by this supplier.default LongSupplierthenApplyAsLong(LongUnaryOperator operator) Returns a supplier that applies the specified operator to the value returned by this supplier.default BooleanSupplierthenTest(LongPredicate predicate) Returns a supplier that applies the specified predicate to the value returned by this supplier.Methods inherited from interface LongSupplier
getAsLong
-
Field Details
-
MINIMUM
A supplier that always returns -9223372036854775808L. -
ZERO
A supplier that always returns zero. -
MAXIMUM
A supplier that always returns 9223372036854775807L.
-
-
Method Details
-
thenAccept
Returns a runner that accepts the value returned by this supplier via the specified consumer.- Parameters:
consumer- a integer consumer- Returns:
- a runner that accepts the value returned by this supplier via the specified consumer.
-
thenApply
Returns a supplier that applies the specified function to the value returned by this supplier.- Type Parameters:
V- the mapped value type- Parameters:
function- a mapping function- Returns:
- a supplier that applies the specified function to the value returned by this supplier.
-
thenApplyAsDouble
Returns a supplier that applies the specified function to the value returned by this supplier.- Parameters:
function- a mapping function- Returns:
- a supplier that applies the specified function to the value returned by this supplier.
-
thenApplyAsInt
Returns a supplier that applies the specified function to the value returned by this supplier.- Parameters:
function- a mapping function- Returns:
- a supplier that applies the specified function to the value returned by this supplier.
-
thenApplyAsLong
Returns a supplier that applies the specified operator to the value returned by this supplier.- Parameters:
operator- a mapping operator- Returns:
- a supplier that applies the specified operator to the value returned by this supplier.
-
thenTest
Returns a supplier that applies the specified predicate to the value returned by this supplier.- Parameters:
predicate- a predicate- Returns:
- a supplier that applies the specified predicate to the value returned by this supplier.
-
boxed
-
handle
Returns a new supplier that delegates to this supplier using the specified exception handler.- Parameters:
handler- an exception handler- Returns:
- a new supplier that delegates to this supplier using the specified exception handler.
-
of
Returns a supplier of the specified value.- Parameters:
value- the supplied value- Returns:
- a supplier of the specified value.
-