T1 - the type of the input to the function@FunctionalInterface public interface ToLongFunction1<T1> extends ToLongFunctionN, InputChainableInput<T1>, UnboxedResult<Function1<T1,java.lang.Long>>, Variant<java.util.function.ToLongFunction<T1>>
long-valued result.
This is the one-arity specialization of ToLongFunctionN.
This is the long-producing primitive specialization of Function1.
This is a functional interface whose functional method is applyAsLong(Object).
Function1,
ToLongFunctionNToLongFunctionN.InstanceFunctionN.FunctionSizeException| Modifier and Type | Method and Description |
|---|---|
default <V> Function1<T1,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> Function1<T1,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(T1 t1)
Applies this function to the given argument.
|
default int |
arity()
Returns the number of arguments of the function.
|
default Function1<T1,java.lang.Long> |
boxResult()
Returns the boxed version of this object with a boxed result.
|
default <V> ToLongFunction1<V> |
compose(Function1<? super V,? extends T1> before)
Returns a chained object that applies the
before function to its
input, and then applies this chainable object to the result. |
default <V> ToLongFunction1<V> |
composeUnchecked(Function1<? super V,? extends T1> before)
Returns a chained object that applies the
before function to its
input, and then applies this chainable object to the result. |
static <T1> ToLongFunction1<T1> |
fromVariant(java.util.function.ToLongFunction<T1> function)
Creates an instance of this object from its
ToLongFunction variant. |
default java.util.function.ToLongFunction<T1> |
toVariant()
Returns the variant of this object.
|
applyAllUncheckedcheckSize, checkSize, sizedApplyAllUncheckedlong applyAsLong(T1 t1)
t1 - the function argumentdefault long applyAllAsLongUnchecked(java.lang.Object... args)
ToLongFunctionNapplyAllAsLongUnchecked in interface ToLongFunctionNargs - the function argumentsdefault int arity()
FunctionN-1.static <T1> ToLongFunction1<T1> fromVariant(java.util.function.ToLongFunction<T1> function)
ToLongFunction variant.T1 - the type of the input to the functionfunction - the variant of this objectToLongFunctiondefault java.util.function.ToLongFunction<T1> toVariant()
Variantdefault Function1<T1,java.lang.Long> boxResult()
UnboxedResultboxResult in interface UnboxedResult<Function1<T1,java.lang.Long>>Function1default <V> ToLongFunction1<V> compose(Function1<? super V,? extends T1> before)
InputChainablebefore function to its
input, and then applies this chainable object to the result. If evaluation
of either throws an exception, it is relayed to the caller of the chained
object.compose in interface InputChainable<T1>compose in interface InputChainableInput<T1>V - the type of the input to the before function, and to
then chained objectbefore - the function to apply before this chainable object is appliedbefore function
and then applies this chainable objectdefault <V> ToLongFunction1<V> composeUnchecked(Function1<? super V,? extends T1> before)
InputChainablebefore function to its
input, and then applies this chainable object to the 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.composeUnchecked in interface InputChainable<T1>composeUnchecked in interface InputChainableInput<T1>V - the type of the input to the before function, and to
then chained objectbefore - the function to apply before this chainable object is appliedbefore function
and then applies this chainable objectdefault <V> Function1<T1,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 functionFunction1default <V> Function1<T1,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 functionFunction1