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