@FunctionalInterface public interface LToDblBiFunction<T1,T2> extends java.util.function.ToDoubleBiFunction<T1,T2>, MetaFunction, MetaInterface.NonThrowing, Codomain<aType.aDouble>, Domain2<aType.a<T1>,aType.a<T2>>
Non-throwing functional interface (lambda) LToDblBiFunction for Java 8.
Type: function
Domain (lvl: 2): T1 a1,T2 a2
Co-domain: double
| Modifier and Type | Interface and Description |
|---|---|
static class |
LToDblBiFunction.LToDblBiFunctionSingle<T1,T2> |
static interface |
LToDblBiFunction.LToDblObj1Obj0Func<T2,T1>
Permutation of LToDblBiFunction for method references.
|
MetaInterface.NonThrowing, MetaInterface.Throwing<X>| Modifier and Type | Field and Description |
|---|---|
static String |
DESCRIPTION |
| Modifier and Type | Method and Description |
|---|---|
static <T1,T2> LToDblBiFunction<T1,T2> |
apply1stAsDbl(LToDblFunction<T1> func)
Captures single parameter function into this interface where only 1st parameter will be used.
|
static <T1,T2> LToDblBiFunction<T1,T2> |
apply2ndAsDbl(LToDblFunction<T2> func)
Captures single parameter function into this interface where only 2nd parameter will be used.
|
default double |
applyAsDbl(T1 a1,
T2 a2) |
default double |
applyAsDbl(T1 a1,
T2 a2,
ExWF<RuntimeException> exF) |
default double |
applyAsDbl(T1 a1,
T2 a2,
ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
default double |
applyAsDblThen(T1 a1,
T2 a2,
LToDblFunction<Throwable> handler) |
double |
applyAsDblX(T1 a1,
T2 a2)
Implement this, but call applyAsDbl(T1 a1,T2 a2)
|
default double |
applyAsDouble(T1 a1,
T2 a2)
Deprecated.
Calling this method via LToDblBiFunction interface should be discouraged.
|
static <T1,T2> double |
call(T1 a1,
T2 a2,
LToDblBiFunction<T1,T2> lambda) |
default LDblSupplier |
capture(T1 a1,
T2 a2)
Captures arguments but delays the evaluation.
|
default <V2,V3> LToDblBiFunction<V2,V3> |
cast()
Cast that replace generics.
|
static <V2,V3,T1,T2> |
cast(LToDblBiFunction<T1,T2> function)
Cast that replace generics.
|
default <V1,V2> LToDblBiFunction<V1,V2> |
compose(LFunction<? super V1,? extends T1> before1,
LFunction<? super V2,? extends T2> before2)
Allows to manipulate the domain of the function.
|
static <V1,V2,T1,T2> |
composed(LFunction<? super V1,? extends T1> before1,
LFunction<? super V2,? extends T2> before2,
LToDblBiFunction<T1,T2> after) |
static <T1,T2> LToDblBiFunction<T1,T2> |
constant(double r)
Creates function that always returns the same value.
|
static <T1,T2> LToDblBiFunction<T1,T2> |
failSafe(LToDblBiFunction<T1,T2> func,
LToDblBiFunction<T1,T2> failSafe) |
default double |
failSafeApplyAsDbl(T1 a1,
T2 a2,
LToDblBiFunction<T1,T2> failSafe) |
static <T1,T2> double |
failSafeApplyAsDbl(T1 a1,
T2 a2,
LToDblBiFunction<T1,T2> func,
LToDblBiFunction<T1,T2> failSafe) |
default <C1,C2> void |
forEach(IndexedRead<C1,aType.a<T1>> ia1,
C1 source1,
IndexedRead<C2,aType.a<T2>> ia2,
C2 source2,
LDblConsumer consumer)
For each element (or tuple) from arguments, calls the function and passes the result to consumer.
|
static <T1,T2> void |
fromTill(int min_i,
int max_i,
T1 a1,
T2 a2,
LToDblBiFunction<T1,T2> func)
From-To.
|
static <T1,T2> void |
fromTo(int min_i,
int max_i,
T1 a1,
T2 a2,
LToDblBiFunction<T1,T2> func)
From-To.
|
default String |
functionalInterfaceDescription()
Returns description of the functional interface.
|
default LToDblBiFunction<T1,T2> |
handling(HandlingInstructions<Throwable,RuntimeException> handling) |
default double |
handlingApplyAsDbl(T1 a1,
T2 a2,
HandlingInstructions<Throwable,RuntimeException> handling)
Function call that handles exceptions according to the instructions.
|
static <T1,T2> double |
handlingApplyAsDbl(T1 a1,
T2 a2,
LToDblBiFunction<T1,T2> func,
HandlingInstructions<Throwable,RuntimeException> handling) |
default <C1,C2,I2> void |
iterate(IndexedRead<C1,aType.a<T1>> ia1,
C1 source1,
SequentialRead<C2,I2,aType.a<T2>> sa2,
C2 source2,
LDblConsumer consumer)
For each element (or tuple) from arguments, calls the function and passes the result to consumer.
|
default <C1,I1,C2> void |
iterate(SequentialRead<C1,I1,aType.a<T1>> sa1,
C1 source1,
IndexedRead<C2,aType.a<T2>> ia2,
C2 source2,
LDblConsumer consumer)
For each element (or tuple) from arguments, calls the function and passes the result to consumer.
|
default <C1,I1,C2,I2> |
iterate(SequentialRead<C1,I1,aType.a<T1>> sa1,
C1 source1,
SequentialRead<C2,I2,aType.a<T2>> sa2,
C2 source2,
LDblConsumer consumer)
For each element (or tuple) from arguments, calls the function and passes the result to consumer.
|
default LToDblFunction<T2> |
lShrink(LFunction<T2,T1> left) |
default LToDblFunction<T2> |
lShrinkc(T1 a1) |
static <T2,T1> LToDblFunction<T2> |
lShrinked(LFunction<T2,T1> left,
LToDblBiFunction<T1,T2> func) |
static <T2,T1> LToDblFunction<T2> |
lShrinkedc(T1 a1,
LToDblBiFunction<T1,T2> func) |
default double |
nestingApplyAsDbl(T1 a1,
T2 a2)
Function call that handles exceptions by always nesting checked exceptions and propagating the others as is.
|
default double |
nonNullApplyAsDbl(T1 a1,
T2 a2)
Just to mirror the method: Ensures the result is not null
|
static <T1,T2> double |
produceDouble(T1 a1,
T2 a2)
Does nothing (LToDblBiFunction) Function
|
static <T1,T2> LToDblBiFunction<T1,T2> |
recursive(LFunction<LToDblBiFunction<T1,T2>,LToDblBiFunction<T1,T2>> selfLambda) |
default LToDblFunction<T1> |
rShrink(LFunction<T1,T2> right) |
default LToDblFunction<T1> |
rShrinkc(T2 a2) |
static <T1,T2> LToDblFunction<T1> |
rShrinked(LFunction<T1,T2> right,
LToDblBiFunction<T1,T2> func) |
static <T1,T2> LToDblFunction<T1> |
rShrinkedc(T2 a2,
LToDblBiFunction<T1,T2> func) |
static <T1,T2> LToDblBiFunction<T1,T2> |
safe()
Safe instance.
|
static <T1,T2> LToDblBiFunction<T1,T2> |
safe(LToDblBiFunction<T1,T2> other)
Safe wrapping.
|
static <T1,T2> LSupplier<LToDblBiFunction<T1,T2>> |
safeSupplier()
Safe instance supplier.
|
static <T1,T2> LSupplier<LToDblBiFunction<T1,T2>> |
safeSupplier(LSupplier<LToDblBiFunction<T1,T2>> supplier)
Safe supplier.
|
default double |
shovingApplyAsDbl(T1 a1,
T2 a2)
Function call that handles exceptions by always propagating them as is, even when they are undeclared checked ones.
|
default <V> LBiFunction<T1,T2,V> |
then(LDblFunction<? extends V> after)
Combines two functions together in a order.
|
default LBiPredicate<T1,T2> |
thenToBool(LDblPredicate after)
Combines two functions together in a order.
|
default LToByteBiFunction<T1,T2> |
thenToByte(LDblToByteFunction after)
Combines two functions together in a order.
|
default LToCharBiFunction<T1,T2> |
thenToChar(LDblToCharFunction after)
Combines two functions together in a order.
|
default LToDblBiFunction<T1,T2> |
thenToDbl(LDblUnaryOperator after)
Combines two functions together in a order.
|
default LToFltBiFunction<T1,T2> |
thenToFlt(LDblToFltFunction after)
Combines two functions together in a order.
|
default LToIntBiFunction<T1,T2> |
thenToInt(LDblToIntFunction after)
Combines two functions together in a order.
|
default LToLongBiFunction<T1,T2> |
thenToLong(LDblToLongFunction after)
Combines two functions together in a order.
|
default LToSrtBiFunction<T1,T2> |
thenToSrt(LDblToSrtFunction after)
Combines two functions together in a order.
|
static <T1,T2> void |
times(int max_i,
T1 a1,
T2 a2,
LToDblBiFunction<T1,T2> func)
From-To.
|
static <T1,T2> LToDblBiFunction<T1,T2> |
toDblBiFunc(LToDblBiFunction<T1,T2> lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
|
static <T1,T2> LToDblBiFunction<T1,T2> |
toDblBiFuncThrowing(ExF<Throwable> exF) |
static <T1,T2> LToDblBiFunction<T1,T2> |
toDblBiFuncThrowing(String message,
ExMF<Throwable> exF) |
static <T2,T1> LToDblBiFunction.LToDblObj1Obj0Func<T2,T1> |
toDblObj1Obj0Func(LToDblBiFunction.LToDblObj1Obj0Func<T2,T1> lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
|
static <T1,T2> double |
tryApplyAsDbl(T1 a1,
T2 a2,
LToDblBiFunction<T1,T2> func) |
static <T1,T2> double |
tryApplyAsDbl(T1 a1,
T2 a2,
LToDblBiFunction<T1,T2> func,
ExWF<RuntimeException> exF) |
static <T1,T2> double |
tryApplyAsDbl(T1 a1,
T2 a2,
LToDblBiFunction<T1,T2> func,
ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
static <T1,T2> double |
tryApplyAsDblThen(T1 a1,
T2 a2,
LToDblBiFunction<T1,T2> func,
LToDblFunction<Throwable> handler) |
default LToDblBiFunction<T1,T2> |
trying(ExWF<RuntimeException> exF) |
default LToDblBiFunction<T1,T2> |
trying(ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
default LToDblBiFunction<T1,T2> |
tryingThen(LToDblFunction<Throwable> handler) |
default double |
tupleApplyAsDbl(LPair<T1,T2> args) |
static <T1,T2> LToDblBiFunction<T1,T2> |
uncurry(LFunction<T1,LToDblFunction<T2>> func) |
default LToDblBiFunction |
untyped()
Cast that removes generics.
|
static <T1,T2> LToDblBiFunction<T1,T2> |
wrap(java.util.function.ToDoubleBiFunction<T1,T2> other)
Wraps JRE instance.
|
isFunctionformatTo, isAction, isConsumer, isOperator, isPredicate, isSupplierisThrowingstatic final String DESCRIPTION
@Deprecated default double applyAsDouble(T1 a1, T2 a2)
Default implementation for JRE method that calls exception nesting method.
applyAsDouble in interface java.util.function.ToDoubleBiFunction<T1,T2>double applyAsDblX(T1 a1, T2 a2) throws Throwable
Implement this, but call applyAsDbl(T1 a1,T2 a2)
Throwabledefault double handlingApplyAsDbl(T1 a1, T2 a2, HandlingInstructions<Throwable,RuntimeException> handling)
Function call that handles exceptions according to the instructions.
default LToDblBiFunction<T1,T2> handling(HandlingInstructions<Throwable,RuntimeException> handling)
default double applyAsDbl(T1 a1, T2 a2, @Nonnull ExWMF<RuntimeException> exF, @Nonnull String newMessage, @Nullable Object... messageParams)
default LToDblBiFunction<T1,T2> trying(@Nonnull ExWMF<RuntimeException> exF, @Nonnull String newMessage, @Nullable Object... messageParams)
default double applyAsDbl(T1 a1, T2 a2, @Nonnull ExWF<RuntimeException> exF)
default LToDblBiFunction<T1,T2> trying(@Nonnull ExWF<RuntimeException> exF)
default double applyAsDblThen(T1 a1, T2 a2, @Nonnull LToDblFunction<Throwable> handler)
default LToDblBiFunction<T1,T2> tryingThen(@Nonnull LToDblFunction<Throwable> handler)
default double nestingApplyAsDbl(T1 a1, T2 a2)
Function call that handles exceptions by always nesting checked exceptions and propagating the others as is.
default double shovingApplyAsDbl(T1 a1, T2 a2)
Function call that handles exceptions by always propagating them as is, even when they are undeclared checked ones.
static <T1,T2> double handlingApplyAsDbl(T1 a1,
T2 a2,
LToDblBiFunction<T1,T2> func,
HandlingInstructions<Throwable,RuntimeException> handling)
static <T1,T2> double tryApplyAsDbl(T1 a1,
T2 a2,
LToDblBiFunction<T1,T2> func)
static <T1,T2> double tryApplyAsDbl(T1 a1,
T2 a2,
LToDblBiFunction<T1,T2> func,
@Nonnull
ExWMF<RuntimeException> exF,
@Nonnull
String newMessage,
@Nullable
Object... messageParams)
static <T1,T2> double tryApplyAsDbl(T1 a1,
T2 a2,
LToDblBiFunction<T1,T2> func,
@Nonnull
ExWF<RuntimeException> exF)
static <T1,T2> double tryApplyAsDblThen(T1 a1,
T2 a2,
LToDblBiFunction<T1,T2> func,
@Nonnull
LToDblFunction<Throwable> handler)
default double failSafeApplyAsDbl(T1 a1, T2 a2, @Nonnull LToDblBiFunction<T1,T2> failSafe)
static <T1,T2> double failSafeApplyAsDbl(T1 a1,
T2 a2,
LToDblBiFunction<T1,T2> func,
@Nonnull
LToDblBiFunction<T1,T2> failSafe)
static <T1,T2> LToDblBiFunction<T1,T2> failSafe(LToDblBiFunction<T1,T2> func, @Nonnull LToDblBiFunction<T1,T2> failSafe)
default double nonNullApplyAsDbl(T1 a1, T2 a2)
Just to mirror the method: Ensures the result is not null
@Nonnull default String functionalInterfaceDescription()
Returns description of the functional interface.
functionalInterfaceDescription in interface MetaFunctionalInterfacestatic <T1,T2> void fromTo(int min_i,
int max_i,
T1 a1,
T2 a2,
LToDblBiFunction<T1,T2> func)
From-To. Intended to be used with non-capturing lambda.
static <T1,T2> void fromTill(int min_i,
int max_i,
T1 a1,
T2 a2,
LToDblBiFunction<T1,T2> func)
From-To. Intended to be used with non-capturing lambda.
static <T1,T2> void times(int max_i,
T1 a1,
T2 a2,
LToDblBiFunction<T1,T2> func)
From-To. Intended to be used with non-capturing lambda.
default LToDblFunction<T2> lShrink(LFunction<T2,T1> left)
default LToDblFunction<T2> lShrinkc(T1 a1)
static <T2,T1> LToDblFunction<T2> lShrinked(LFunction<T2,T1> left, LToDblBiFunction<T1,T2> func)
static <T2,T1> LToDblFunction<T2> lShrinkedc(T1 a1, LToDblBiFunction<T1,T2> func)
default LToDblFunction<T1> rShrink(LFunction<T1,T2> right)
default LToDblFunction<T1> rShrinkc(T2 a2)
static <T1,T2> LToDblFunction<T1> rShrinked(LFunction<T1,T2> right, LToDblBiFunction<T1,T2> func)
static <T1,T2> LToDblFunction<T1> rShrinkedc(T2 a2, LToDblBiFunction<T1,T2> func)
static <T1,T2> LToDblBiFunction<T1,T2> uncurry(LFunction<T1,LToDblFunction<T2>> func)
default LToDblBiFunction untyped()
Cast that removes generics.
default <V2,V3> LToDblBiFunction<V2,V3> cast()
Cast that replace generics.
static <V2,V3,T1,T2> LToDblBiFunction<V2,V3> cast(LToDblBiFunction<T1,T2> function)
Cast that replace generics.
default LDblSupplier capture(T1 a1, T2 a2)
Captures arguments but delays the evaluation.
static <T1,T2> LToDblBiFunction<T1,T2> constant(double r)
Creates function that always returns the same value.
@Nonnull static <T1,T2> LToDblBiFunction<T1,T2> apply1stAsDbl(@Nonnull LToDblFunction<T1> func)
Captures single parameter function into this interface where only 1st parameter will be used.
@Nonnull static <T1,T2> LToDblBiFunction<T1,T2> apply2ndAsDbl(@Nonnull LToDblFunction<T2> func)
Captures single parameter function into this interface where only 2nd parameter will be used.
@Nonnull static <T1,T2> LToDblBiFunction<T1,T2> toDblBiFunc(@Nonnull LToDblBiFunction<T1,T2> lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
@Nonnull static <T1,T2> LToDblBiFunction<T1,T2> recursive(@Nonnull LFunction<LToDblBiFunction<T1,T2>,LToDblBiFunction<T1,T2>> selfLambda)
@Nonnull static <T1,T2> LToDblBiFunction<T1,T2> toDblBiFuncThrowing(@Nonnull ExF<Throwable> exF)
@Nonnull static <T1,T2> LToDblBiFunction<T1,T2> toDblBiFuncThrowing(String message, @Nonnull ExMF<Throwable> exF)
@Nonnull static <T2,T1> LToDblBiFunction.LToDblObj1Obj0Func<T2,T1> toDblObj1Obj0Func(@Nonnull LToDblBiFunction.LToDblObj1Obj0Func<T2,T1> lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
static <T1,T2> double call(T1 a1,
T2 a2,
@Nonnull
LToDblBiFunction<T1,T2> lambda)
@Nonnull static <T1,T2> LToDblBiFunction<T1,T2> wrap(java.util.function.ToDoubleBiFunction<T1,T2> other)
Wraps JRE instance.
@Nonnull static <T1,T2> LToDblBiFunction<T1,T2> safe()
Safe instance. That always returns the same value (as produceDouble).
@Nonnull static <T1,T2> LSupplier<LToDblBiFunction<T1,T2>> safeSupplier()
Safe instance supplier. Returns supplier of safe() instance.
@Nonnull static <T1,T2> LToDblBiFunction<T1,T2> safe(@Nullable LToDblBiFunction<T1,T2> other)
Safe wrapping. Either argument function is returned (if it is not null) or safe() instance.
@Nonnull static <T1,T2> LSupplier<LToDblBiFunction<T1,T2>> safeSupplier(@Nullable LSupplier<LToDblBiFunction<T1,T2>> supplier)
Safe supplier. Either argument supplier is returned (if it is not null) or supplier of safe() instance.
@Nonnull default <V1,V2> LToDblBiFunction<V1,V2> compose(@Nonnull LFunction<? super V1,? extends T1> before1, @Nonnull LFunction<? super V2,? extends T2> before2)
Allows to manipulate the domain of the function.
static <V1,V2,T1,T2> LToDblBiFunction<V1,V2> composed(@Nonnull LFunction<? super V1,? extends T1> before1, @Nonnull LFunction<? super V2,? extends T2> before2, LToDblBiFunction<T1,T2> after)
@Nonnull default <V> LBiFunction<T1,T2,V> then(@Nonnull LDblFunction<? extends V> after)
Combines two functions together in a order.
@Nonnull default LToByteBiFunction<T1,T2> thenToByte(@Nonnull LDblToByteFunction after)
Combines two functions together in a order.
@Nonnull default LToSrtBiFunction<T1,T2> thenToSrt(@Nonnull LDblToSrtFunction after)
Combines two functions together in a order.
@Nonnull default LToIntBiFunction<T1,T2> thenToInt(@Nonnull LDblToIntFunction after)
Combines two functions together in a order.
@Nonnull default LToLongBiFunction<T1,T2> thenToLong(@Nonnull LDblToLongFunction after)
Combines two functions together in a order.
@Nonnull default LToFltBiFunction<T1,T2> thenToFlt(@Nonnull LDblToFltFunction after)
Combines two functions together in a order.
@Nonnull default LToDblBiFunction<T1,T2> thenToDbl(@Nonnull LDblUnaryOperator after)
Combines two functions together in a order.
@Nonnull default LToCharBiFunction<T1,T2> thenToChar(@Nonnull LDblToCharFunction after)
Combines two functions together in a order.
@Nonnull default LBiPredicate<T1,T2> thenToBool(@Nonnull LDblPredicate after)
Combines two functions together in a order.
static <T1,T2> double produceDouble(T1 a1,
T2 a2)
Does nothing (LToDblBiFunction) Function
default <C1,C2> void forEach(IndexedRead<C1,aType.a<T1>> ia1, C1 source1, IndexedRead<C2,aType.a<T2>> ia2, C2 source2, LDblConsumer consumer)
For each element (or tuple) from arguments, calls the function and passes the result to consumer. Thread safety, fail-fast, fail-safety of this method is not expected.
default <C1,I1,C2> void iterate(SequentialRead<C1,I1,aType.a<T1>> sa1, C1 source1, IndexedRead<C2,aType.a<T2>> ia2, C2 source2, LDblConsumer consumer)
For each element (or tuple) from arguments, calls the function and passes the result to consumer. Thread safety, fail-fast, fail-safety of this method is not expected.
default <C1,C2,I2> void iterate(IndexedRead<C1,aType.a<T1>> ia1, C1 source1, SequentialRead<C2,I2,aType.a<T2>> sa2, C2 source2, LDblConsumer consumer)
For each element (or tuple) from arguments, calls the function and passes the result to consumer. Thread safety, fail-fast, fail-safety of this method is not expected.
default <C1,I1,C2,I2> void iterate(SequentialRead<C1,I1,aType.a<T1>> sa1, C1 source1, SequentialRead<C2,I2,aType.a<T2>> sa2, C2 source2, LDblConsumer consumer)
For each element (or tuple) from arguments, calls the function and passes the result to consumer. Thread safety, fail-fast, fail-safety of this method depends highly on the arguments.
Copyright © 2019. All rights reserved.