@FunctionalInterface public interface LBiDblFunction<R> extends MetaFunction, MetaInterface.NonThrowing, Codomain<aType.a<R>>, Domain2<aType.aDouble,aType.aDouble>
Non-throwing functional interface (lambda) LBiDblFunction for Java 8.
Type: function
Domain (lvl: 2): double a1,double a2
Co-domain: R
| Modifier and Type | Interface and Description |
|---|---|
static class |
LBiDblFunction.LBiDblFunctionSingle<R> |
static interface |
LBiDblFunction.LDbl1Dbl0Func<R>
Permutation of LBiDblFunction for method references.
|
MetaInterface.NonThrowing, MetaInterface.Throwing<X>| Modifier and Type | Field and Description |
|---|---|
static String |
DESCRIPTION |
static LSupplier<String> |
NULL_VALUE_MESSAGE_SUPPLIER |
| Modifier and Type | Method and Description |
|---|---|
default LBiDblFunction<R> |
after(LConsumer<? super R> after) |
default R |
apply(double a1,
double a2) |
default R |
apply(double a1,
double a2,
ExWF<RuntimeException> exF) |
default R |
apply(double a1,
double a2,
ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
static <R> LBiDblFunction<R> |
apply1st(LDblFunction<R> func)
Captures single parameter function into this interface where only 1st parameter will be used.
|
static <R> LBiDblFunction<R> |
apply2nd(LDblFunction<R> func)
Captures single parameter function into this interface where only 2nd parameter will be used.
|
default R |
applyThen(double a1,
double a2,
LFunction<Throwable,R> handler) |
R |
applyX(double a1,
double a2)
Implement this, but call apply(double a1,double a2)
|
default LBiDblFunction<R> |
before(LBiDblConsumer before) |
static <R> LBiDblFunction<R> |
biDblFunc(LBiDblFunction<R> lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
|
default <V1,V2> LBiFunction<V1,V2,R> |
biDblFuncCompose(LToDblFunction<? super V1> before1,
LToDblFunction<? super V2> before2)
Allows to manipulate the domain of the function.
|
static <R> LBiDblFunction<R> |
biDblFuncThrowing(ExF<Throwable> exF) |
static <R> LBiDblFunction<R> |
biDblFuncThrowing(String message,
ExMF<Throwable> exF) |
static <R> R |
call(double a1,
double a2,
LBiDblFunction<R> lambda) |
default LSupplier<R> |
capture(double a1,
double a2)
Captures arguments but delays the evaluation.
|
default <V2> LBiDblFunction<V2> |
cast()
Cast that replace generics.
|
static <V2,R> LBiDblFunction<V2> |
cast(LBiDblFunction<R> function)
Cast that replace generics.
|
default LBiDblFunction<R> |
compose(LDblUnaryOperator before1,
LDblUnaryOperator before2)
Allows to manipulate the domain of the function.
|
static <R> LBiDblFunction<R> |
composed(LDblUnaryOperator before1,
LDblUnaryOperator before2,
LBiDblFunction<R> after) |
static <V1,V2,R> LBiFunction<V1,V2,R> |
composed(LToDblFunction<? super V1> before1,
LToDblFunction<? super V2> before2,
LBiDblFunction<R> after) |
static <R> LBiDblFunction<R> |
constant(R r)
Creates function that always returns the same value.
|
static <R> LBiDblFunction.LDbl1Dbl0Func<R> |
dbl1Dbl0Func(LBiDblFunction.LDbl1Dbl0Func<R> lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
|
static <R> LBiDblFunction<R> |
failSafe(LBiDblFunction<R> func,
LBiDblFunction<R> failSafe) |
default R |
failSafeApply(double a1,
double a2,
LBiDblFunction<R> failSafe) |
static <R> R |
failSafeApply(double a1,
double a2,
LBiDblFunction<R> func,
LBiDblFunction<R> failSafe) |
default <C1,C2> void |
forEach(IndexedRead<C1,aType.aDouble> ia1,
C1 source1,
IndexedRead<C2,aType.aDouble> ia2,
C2 source2,
LConsumer<? super R> consumer)
For each element (or tuple) from arguments, calls the function and passes the result to consumer.
|
static <R> void |
fromTill(int min_i,
int max_i,
double a1,
double a2,
LBiDblFunction<R> func)
From-To.
|
static <R> void |
fromTo(int min_i,
int max_i,
double a1,
double a2,
LBiDblFunction<R> func)
From-To.
|
default String |
functionalInterfaceDescription()
Returns description of the functional interface.
|
default LBiDblFunction<R> |
handling(HandlingInstructions<Throwable,RuntimeException> handling) |
default R |
handlingApply(double a1,
double a2,
HandlingInstructions<Throwable,RuntimeException> handling)
Function call that handles exceptions according to the instructions.
|
static <R> R |
handlingApply(double a1,
double a2,
LBiDblFunction<R> func,
HandlingInstructions<Throwable,RuntimeException> handling) |
default <C1,C2,I2> void |
iterate(IndexedRead<C1,aType.aDouble> ia1,
C1 source1,
SequentialRead<C2,I2,aType.aDouble> sa2,
C2 source2,
LConsumer<? super R> 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.aDouble> sa1,
C1 source1,
IndexedRead<C2,aType.aDouble> ia2,
C2 source2,
LConsumer<? super R> 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.aDouble> sa1,
C1 source1,
SequentialRead<C2,I2,aType.aDouble> sa2,
C2 source2,
LConsumer<? super R> consumer)
For each element (or tuple) from arguments, calls the function and passes the result to consumer.
|
default LDblFunction<R> |
lShrink(LDblUnaryOperator left) |
default LDblFunction<R> |
lShrinkc(double a1) |
static <R> LDblFunction<R> |
lShrinked(LDblUnaryOperator left,
LBiDblFunction<R> func) |
static <R> LDblFunction<R> |
lShrinkedc(double a1,
LBiDblFunction<R> func) |
default R |
nestingApply(double a1,
double a2)
Function call that handles exceptions by always nesting checked exceptions and propagating the others as is.
|
default LBiDblFunction<R> |
nonNullable()
Converts to function that makes sure that the result is not null.
|
default R |
nonNullApply(double a1,
double a2)
Function call that ensures the result is not null
|
static <R> R |
produce(double a1,
double a2)
Does nothing (LBiDblFunction) Function
|
static <R> LBiDblFunction<R> |
recursive(LFunction<LBiDblFunction<R>,LBiDblFunction<R>> selfLambda) |
default LDblFunction<R> |
rShrink(LDblUnaryOperator right) |
default LDblFunction<R> |
rShrinkc(double a2) |
static <R> LDblFunction<R> |
rShrinked(LDblUnaryOperator right,
LBiDblFunction<R> func) |
static <R> LDblFunction<R> |
rShrinkedc(double a2,
LBiDblFunction<R> func) |
static <R> LBiDblFunction<R> |
safe()
Safe instance.
|
static <R> LBiDblFunction<R> |
safe(LBiDblFunction<R> other)
Safe wrapping.
|
static <R> LSupplier<LBiDblFunction<R>> |
safeSupplier()
Safe instance supplier.
|
static <R> LSupplier<LBiDblFunction<R>> |
safeSupplier(LSupplier<LBiDblFunction<R>> supplier)
Safe supplier.
|
default R |
shovingApply(double a1,
double a2)
Function call that handles exceptions by always propagating them as is, even when they are undeclared checked ones.
|
default <V> LBiDblFunction<V> |
then(LFunction<? super R,? extends V> after)
Combines two functions together in a order.
|
default LBiDblConsumer |
thenConsume(LConsumer<? super R> after)
Combines two functions together in a order.
|
default LBiDblPredicate |
thenToBool(LPredicate<? super R> after)
Combines two functions together in a order.
|
default LDblBinaryOperator |
thenToDbl(LToDblFunction<? super R> after)
Combines two functions together in a order.
|
static <R> void |
times(int max_i,
double a1,
double a2,
LBiDblFunction<R> func)
From-To.
|
static <R> R |
tryApply(double a1,
double a2,
LBiDblFunction<R> func) |
static <R> R |
tryApply(double a1,
double a2,
LBiDblFunction<R> func,
ExWF<RuntimeException> exF) |
static <R> R |
tryApply(double a1,
double a2,
LBiDblFunction<R> func,
ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
static <R> R |
tryApplyThen(double a1,
double a2,
LBiDblFunction<R> func,
LFunction<Throwable,R> handler) |
default LBiDblFunction<R> |
trying(ExWF<RuntimeException> exF) |
default LBiDblFunction<R> |
trying(ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
default LBiDblFunction<R> |
tryingThen(LFunction<Throwable,R> handler) |
default R |
tupleApply(LDblPair args) |
static <R> LBiDblFunction<R> |
uncurry(LDblFunction<LDblFunction<R>> func) |
default LBiDblFunction |
untyped()
Cast that removes generics.
|
isFunctionformatTo, isAction, isConsumer, isOperator, isPredicate, isSupplierisThrowingstatic final String DESCRIPTION
R applyX(double a1, double a2) throws Throwable
Implement this, but call apply(double a1,double a2)
Throwabledefault R handlingApply(double a1, double a2, HandlingInstructions<Throwable,RuntimeException> handling)
Function call that handles exceptions according to the instructions.
default LBiDblFunction<R> handling(HandlingInstructions<Throwable,RuntimeException> handling)
default R apply(double a1, double a2, @Nonnull ExWMF<RuntimeException> exF, @Nonnull String newMessage, @Nullable Object... messageParams)
default LBiDblFunction<R> trying(@Nonnull ExWMF<RuntimeException> exF, @Nonnull String newMessage, @Nullable Object... messageParams)
default R apply(double a1, double a2, @Nonnull ExWF<RuntimeException> exF)
default LBiDblFunction<R> trying(@Nonnull ExWF<RuntimeException> exF)
default R nestingApply(double a1, double a2)
Function call that handles exceptions by always nesting checked exceptions and propagating the others as is.
default R shovingApply(double a1, double a2)
Function call that handles exceptions by always propagating them as is, even when they are undeclared checked ones.
static <R> R handlingApply(double a1,
double a2,
LBiDblFunction<R> func,
HandlingInstructions<Throwable,RuntimeException> handling)
static <R> R tryApply(double a1,
double a2,
LBiDblFunction<R> func)
static <R> R tryApply(double a1,
double a2,
LBiDblFunction<R> func,
@Nonnull
ExWMF<RuntimeException> exF,
@Nonnull
String newMessage,
@Nullable
Object... messageParams)
static <R> R tryApply(double a1,
double a2,
LBiDblFunction<R> func,
@Nonnull
ExWF<RuntimeException> exF)
static <R> R tryApplyThen(double a1,
double a2,
LBiDblFunction<R> func,
@Nonnull
LFunction<Throwable,R> handler)
default R failSafeApply(double a1, double a2, @Nonnull LBiDblFunction<R> failSafe)
static <R> R failSafeApply(double a1,
double a2,
LBiDblFunction<R> func,
@Nonnull
LBiDblFunction<R> failSafe)
static <R> LBiDblFunction<R> failSafe(LBiDblFunction<R> func, @Nonnull LBiDblFunction<R> failSafe)
@Nonnull default R nonNullApply(double a1, double a2)
Function call that ensures the result is not null
@Nonnull default String functionalInterfaceDescription()
Returns description of the functional interface.
functionalInterfaceDescription in interface MetaFunctionalInterfacestatic <R> void fromTo(int min_i,
int max_i,
double a1,
double a2,
LBiDblFunction<R> func)
From-To. Intended to be used with non-capturing lambda.
static <R> void fromTill(int min_i,
int max_i,
double a1,
double a2,
LBiDblFunction<R> func)
From-To. Intended to be used with non-capturing lambda.
static <R> void times(int max_i,
double a1,
double a2,
LBiDblFunction<R> func)
From-To. Intended to be used with non-capturing lambda.
default LDblFunction<R> lShrink(LDblUnaryOperator left)
default LDblFunction<R> lShrinkc(double a1)
static <R> LDblFunction<R> lShrinked(LDblUnaryOperator left, LBiDblFunction<R> func)
static <R> LDblFunction<R> lShrinkedc(double a1, LBiDblFunction<R> func)
default LDblFunction<R> rShrink(LDblUnaryOperator right)
default LDblFunction<R> rShrinkc(double a2)
static <R> LDblFunction<R> rShrinked(LDblUnaryOperator right, LBiDblFunction<R> func)
static <R> LDblFunction<R> rShrinkedc(double a2, LBiDblFunction<R> func)
static <R> LBiDblFunction<R> uncurry(LDblFunction<LDblFunction<R>> func)
default LBiDblFunction untyped()
Cast that removes generics.
default <V2> LBiDblFunction<V2> cast()
Cast that replace generics.
static <V2,R> LBiDblFunction<V2> cast(LBiDblFunction<R> function)
Cast that replace generics.
default LSupplier<R> capture(double a1, double a2)
Captures arguments but delays the evaluation.
static <R> LBiDblFunction<R> constant(R r)
Creates function that always returns the same value.
@Nonnull static <R> LBiDblFunction<R> apply1st(@Nonnull LDblFunction<R> func)
Captures single parameter function into this interface where only 1st parameter will be used.
@Nonnull static <R> LBiDblFunction<R> apply2nd(@Nonnull LDblFunction<R> func)
Captures single parameter function into this interface where only 2nd parameter will be used.
@Nonnull static <R> LBiDblFunction<R> biDblFunc(@Nonnull LBiDblFunction<R> lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
@Nonnull static <R> LBiDblFunction<R> recursive(@Nonnull LFunction<LBiDblFunction<R>,LBiDblFunction<R>> selfLambda)
@Nonnull static <R> LBiDblFunction<R> biDblFuncThrowing(@Nonnull ExF<Throwable> exF)
@Nonnull static <R> LBiDblFunction<R> biDblFuncThrowing(String message, @Nonnull ExMF<Throwable> exF)
@Nonnull static <R> LBiDblFunction.LDbl1Dbl0Func<R> dbl1Dbl0Func(@Nonnull LBiDblFunction.LDbl1Dbl0Func<R> lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
static <R> R call(double a1,
double a2,
@Nonnull
LBiDblFunction<R> lambda)
@Nonnull static <R> LBiDblFunction<R> safe()
Safe instance. That always returns the same value (as produce).
@Nonnull static <R> LSupplier<LBiDblFunction<R>> safeSupplier()
Safe instance supplier. Returns supplier of safe() instance.
@Nonnull static <R> LBiDblFunction<R> safe(@Nullable LBiDblFunction<R> other)
Safe wrapping. Either argument function is returned (if it is not null) or safe() instance.
@Nonnull static <R> LSupplier<LBiDblFunction<R>> safeSupplier(@Nullable LSupplier<LBiDblFunction<R>> supplier)
Safe supplier. Either argument supplier is returned (if it is not null) or supplier of safe() instance.
@Nonnull default LBiDblFunction<R> compose(@Nonnull LDblUnaryOperator before1, @Nonnull LDblUnaryOperator before2)
Allows to manipulate the domain of the function.
static <R> LBiDblFunction<R> composed(@Nonnull LDblUnaryOperator before1, @Nonnull LDblUnaryOperator before2, LBiDblFunction<R> after)
@Nonnull default <V1,V2> LBiFunction<V1,V2,R> biDblFuncCompose(@Nonnull LToDblFunction<? super V1> before1, @Nonnull LToDblFunction<? super V2> before2)
Allows to manipulate the domain of the function.
static <V1,V2,R> LBiFunction<V1,V2,R> composed(@Nonnull LToDblFunction<? super V1> before1, @Nonnull LToDblFunction<? super V2> before2, LBiDblFunction<R> after)
@Nonnull default <V> LBiDblFunction<V> then(@Nonnull LFunction<? super R,? extends V> after)
Combines two functions together in a order.
@Nonnull default LBiDblConsumer thenConsume(@Nonnull LConsumer<? super R> after)
Combines two functions together in a order.
@Nonnull default LBiDblFunction<R> before(@Nonnull LBiDblConsumer before)
@Nonnull default LDblBinaryOperator thenToDbl(@Nonnull LToDblFunction<? super R> after)
Combines two functions together in a order.
@Nonnull default LBiDblPredicate thenToBool(@Nonnull LPredicate<? super R> after)
Combines two functions together in a order.
@Nonnull default LBiDblFunction<R> nonNullable()
Converts to function that makes sure that the result is not null.
static <R> R produce(double a1,
double a2)
Does nothing (LBiDblFunction) Function
default <C1,C2> void forEach(IndexedRead<C1,aType.aDouble> ia1, C1 source1, IndexedRead<C2,aType.aDouble> ia2, C2 source2, LConsumer<? super R> 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.aDouble> sa1, C1 source1, IndexedRead<C2,aType.aDouble> ia2, C2 source2, LConsumer<? super R> 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.aDouble> ia1, C1 source1, SequentialRead<C2,I2,aType.aDouble> sa2, C2 source2, LConsumer<? super R> 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.aDouble> sa1, C1 source1, SequentialRead<C2,I2,aType.aDouble> sa2, C2 source2, LConsumer<? super R> 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.