@FunctionalInterface public interface ToLongFunction0 extends ToLongFunctionN, UnboxedResult<Function0<java.lang.Long>>, Variant<java.util.function.LongSupplier>
long-valued result.
This is the zero-arity specialization of ToLongFunctionN.
This is the long-producing primitive specialization of Function0.
This is a functional interface whose functional method is applyAsLong().
Function0,
ToLongFunctionNToLongFunctionN.InstanceFunctionN.FunctionSizeException| Modifier and Type | Method and Description |
|---|---|
default <V> Function0<V> |
andThen(Function1<? super java.lang.Long,? extends V> after)
Returns a chained object that applies this chainable object, and then
applies the
after function to ths result. |
default <V> Function0<V> |
andThenUnchecked(Function1<? super java.lang.Long,? extends V> after)
Returns a chained object that applies this chainable object, and then
applies the
after function to ths result. |
default long |
applyAllAsLongUnchecked(java.lang.Object... args)
Applies this function to the given arguments.
|
long |
applyAsLong()
Applies this function.
|
default int |
arity()
Returns the number of arguments of the function.
|
default Function0<java.lang.Long> |
boxResult()
Returns the boxed version of this object with a boxed result.
|
static ToLongFunction0 |
fromVariant(java.util.function.LongSupplier supplier)
Creates an instance of this object from its
LongSupplier variant. |
default java.util.function.LongSupplier |
toVariant()
Returns the variant of this object.
|
applyAllUncheckedcheckSize, checkSize, sizedApplyAllUncheckedlong applyAsLong()
default long applyAllAsLongUnchecked(java.lang.Object... args)
ToLongFunctionNapplyAllAsLongUnchecked in interface ToLongFunctionNargs - the function argumentsdefault int arity()
FunctionN-1.static ToLongFunction0 fromVariant(java.util.function.LongSupplier supplier)
LongSupplier variant.supplier - the variant of this objectLongSupplierdefault java.util.function.LongSupplier toVariant()
Variantdefault Function0<java.lang.Long> boxResult()
UnboxedResultboxResult in interface UnboxedResult<Function0<java.lang.Long>>Function0default <V> Function0<V> andThen(Function1<? super java.lang.Long,? extends V> after)
ResultChainableafter function to ths result. If evaluation of either
throws an exception, it is relayed to the caller of the chained object.andThen in interface FunctionN<java.lang.Long>andThen in interface ResultChainable<java.lang.Long>andThen in interface ResultChainableResult<java.lang.Long>V - the type of the output of the after function, and of
the chained objectafter - the function to apply after this chainable object is appliedafter functionFunction0default <V> Function0<V> andThenUnchecked(Function1<? super java.lang.Long,? extends V> after)
ResultChainableafter function to ths result. If evaluation of either
throws an exception, it is relayed to the caller of the chained object.
This makes no assumptions on the arguments of this method.andThenUnchecked in interface FunctionN<java.lang.Long>andThenUnchecked in interface ResultChainable<java.lang.Long>andThenUnchecked in interface ResultChainableResult<java.lang.Long>V - the type of the output of the after function, and of
the chained objectafter - the function to apply after this chainable object is appliedafter functionFunction0