T1 - the type of the input to the functionT2 - the type of the second argument to the function@FunctionalInterface public interface ToLongFunction2<T1,T2> extends ToLongFunctionN, UnboxedResult<Function2<T1,T2,java.lang.Long>>, Variant<java.util.function.ToLongBiFunction<T1,T2>>
long-valued result.
This is the two-arity specialization of ToLongFunctionN.
This is the long-producing primitive specialization of Function2.
This is a functional interface whose functional method is applyAsLong(Object, Object).
Function2,
ToLongFunctionNToLongFunctionN.InstanceFunctionN.FunctionSizeException| Modifier and Type | Method and Description |
|---|---|
default <V> Function2<T1,T2,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> Function2<T1,T2,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,
T2 t2)
Applies this function to the given arguments.
|
default int |
arity()
Returns the number of arguments of the function.
|
default Function2<T1,T2,java.lang.Long> |
boxResult()
Returns the boxed version of this object with a boxed result.
|
static <T1,T2> ToLongFunction2<T1,T2> |
fromVariant(java.util.function.ToLongBiFunction<T1,T2> function)
Creates an instance of this object from its
ToLongBiFunction variant. |
default java.util.function.ToLongBiFunction<T1,T2> |
toVariant()
Returns the variant of this object.
|
applyAllUncheckedcheckSize, checkSize, sizedApplyAllUncheckedlong applyAsLong(T1 t1, T2 t2)
t1 - the first function argumentt2 - the second function argumentdefault long applyAllAsLongUnchecked(java.lang.Object... args)
ToLongFunctionNapplyAllAsLongUnchecked in interface ToLongFunctionNargs - the function argumentsdefault int arity()
FunctionN-1.static <T1,T2> ToLongFunction2<T1,T2> fromVariant(java.util.function.ToLongBiFunction<T1,T2> function)
ToLongBiFunction variant.T1 - the type of the input to the functionT2 - the type of the second argument to the functionfunction - the variant of this objectToLongBiFunctiondefault java.util.function.ToLongBiFunction<T1,T2> toVariant()
Variantdefault Function2<T1,T2,java.lang.Long> boxResult()
UnboxedResultdefault <V> Function2<T1,T2,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 functionFunction2default <V> Function2<T1,T2,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 functionFunction2