@FunctionalInterface public interface LFltBinaryOperator extends MetaOperator, MetaInterface.NonThrowing, Codomain<aType.aFloat>, Domain2<aType.aFloat,aType.aFloat>
Non-throwing functional interface (lambda) LFltBinaryOperator for Java 8.
Type: operator
Domain (lvl: 2): float a1,float a2
Co-domain: float
| Modifier and Type | Interface and Description |
|---|---|
static class |
LFltBinaryOperator.LFltBinaryOperatorSingle |
MetaInterface.NonThrowing, MetaInterface.Throwing<X>| Modifier and Type | Field and Description |
|---|---|
static String |
DESCRIPTION |
| Modifier and Type | Method and Description |
|---|---|
static LFltBinaryOperator |
apply1stAsFlt(LFltUnaryOperator func)
Captures single parameter function into this interface where only 1st parameter will be used.
|
static LFltBinaryOperator |
apply2ndAsFlt(LFltUnaryOperator func)
Captures single parameter function into this interface where only 2nd parameter will be used.
|
default float |
applyAsFlt(float a1,
float a2) |
default float |
applyAsFlt(float a1,
float a2,
ExWF<RuntimeException> exF) |
default float |
applyAsFlt(float a1,
float a2,
ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
default float |
applyAsFltThen(float a1,
float a2,
LToFltFunction<Throwable> handler) |
float |
applyAsFltX(float a1,
float a2)
Implement this, but call applyAsFlt(float a1,float a2)
|
static float |
call(float a1,
float a2,
LFltBinaryOperator lambda) |
default LFltSupplier |
capture(float a1,
float a2)
Captures arguments but delays the evaluation.
|
default LFltBinaryOperator |
compose(LFltUnaryOperator before1,
LFltUnaryOperator before2)
Allows to manipulate the domain of the function.
|
static LFltBinaryOperator |
composed(LFltUnaryOperator before1,
LFltUnaryOperator before2,
LFltBinaryOperator after) |
static <V1,V2> LToFltBiFunction<V1,V2> |
composed(LToFltFunction<? super V1> before1,
LToFltFunction<? super V2> before2,
LFltBinaryOperator after) |
static LFltBinaryOperator |
constant(float r)
Creates function that always returns the same value.
|
static LFltBinaryOperator |
failSafe(LFltBinaryOperator func,
LFltBinaryOperator failSafe) |
default float |
failSafeApplyAsFlt(float a1,
float a2,
LFltBinaryOperator failSafe) |
static float |
failSafeApplyAsFlt(float a1,
float a2,
LFltBinaryOperator func,
LFltBinaryOperator failSafe) |
static LFltBinaryOperator |
fltBinaryOp(LFltBinaryOperator lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
|
default <V1,V2> LToFltBiFunction<V1,V2> |
fltBinaryOpCompose(LToFltFunction<? super V1> before1,
LToFltFunction<? super V2> before2)
Allows to manipulate the domain of the function.
|
static LFltBinaryOperator |
fltBinaryOpThrowing(ExF<Throwable> exF) |
static LFltBinaryOperator |
fltBinaryOpThrowing(String message,
ExMF<Throwable> exF) |
default <C1,C2> void |
forEach(IndexedRead<C1,aType.aFloat> ia1,
C1 source1,
IndexedRead<C2,aType.aFloat> ia2,
C2 source2,
LFltConsumer consumer)
For each element (or tuple) from arguments, calls the function and passes the result to consumer.
|
static void |
fromTill(int min_i,
int max_i,
float a1,
float a2,
LFltBinaryOperator func)
From-To.
|
static void |
fromTo(int min_i,
int max_i,
float a1,
float a2,
LFltBinaryOperator func)
From-To.
|
default String |
functionalInterfaceDescription()
Returns description of the functional interface.
|
default LFltBinaryOperator |
handling(HandlingInstructions<Throwable,RuntimeException> handling) |
default float |
handlingApplyAsFlt(float a1,
float a2,
HandlingInstructions<Throwable,RuntimeException> handling)
Function call that handles exceptions according to the instructions.
|
static float |
handlingApplyAsFlt(float a1,
float a2,
LFltBinaryOperator 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,
LFltConsumer 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,
LFltConsumer 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,
LFltConsumer consumer)
For each element (or tuple) from arguments, calls the function and passes the result to consumer.
|
default LFltUnaryOperator |
lShrink(LFltUnaryOperator left) |
default LFltUnaryOperator |
lShrinkc(float a1) |
static LFltUnaryOperator |
lShrinked(LFltUnaryOperator left,
LFltBinaryOperator func) |
static LFltUnaryOperator |
lShrinkedc(float a1,
LFltBinaryOperator func) |
static LFltBinaryOperator |
max()
Returns function that returns the higher value.
|
static LFltBinaryOperator |
maxBy(Comparator<Float> comparator)
Creates function that returns the lesser value according to the comparator.
|
static LFltBinaryOperator |
min()
Returns function that returns the lower value.
|
static LFltBinaryOperator |
minBy(Comparator<Float> comparator)
Creates function that returns the lesser value according to the comparator.
|
default float |
nestingApplyAsFlt(float a1,
float a2)
Function call that handles exceptions by always nesting checked exceptions and propagating the others as is.
|
default float |
nonNullApplyAsFlt(float a1,
float a2)
Just to mirror the method: Ensures the result is not null
|
static float |
produceFloat(float a1,
float a2)
Does nothing (LFltBinaryOperator) Operator
|
static LFltBinaryOperator |
recursive(LFunction<LFltBinaryOperator,LFltBinaryOperator> selfLambda) |
default LFltUnaryOperator |
rShrink(LFltUnaryOperator right) |
default LFltUnaryOperator |
rShrinkc(float a2) |
static LFltUnaryOperator |
rShrinked(LFltUnaryOperator right,
LFltBinaryOperator func) |
static LFltUnaryOperator |
rShrinkedc(float a2,
LFltBinaryOperator func) |
static LFltBinaryOperator |
safe()
Safe instance.
|
static LFltBinaryOperator |
safe(LFltBinaryOperator other)
Safe wrapping.
|
static LSupplier<LFltBinaryOperator> |
safeSupplier()
Safe instance supplier.
|
static LSupplier<LFltBinaryOperator> |
safeSupplier(LSupplier<LFltBinaryOperator> supplier)
Safe supplier.
|
default float |
shovingApplyAsFlt(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(LFltFunction<? extends V> after)
Combines two functions together in a order.
|
default LBiFltPredicate |
thenToBool(LFltPredicate after)
Combines two functions together in a order.
|
default LFltBinaryOperator |
thenToFlt(LFltUnaryOperator after)
Combines two functions together in a order.
|
static void |
times(int max_i,
float a1,
float a2,
LFltBinaryOperator func)
From-To.
|
static float |
tryApplyAsFlt(float a1,
float a2,
LFltBinaryOperator func) |
static float |
tryApplyAsFlt(float a1,
float a2,
LFltBinaryOperator func,
ExWF<RuntimeException> exF) |
static float |
tryApplyAsFlt(float a1,
float a2,
LFltBinaryOperator func,
ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
static float |
tryApplyAsFltThen(float a1,
float a2,
LFltBinaryOperator func,
LToFltFunction<Throwable> handler) |
default LFltBinaryOperator |
trying(ExWF<RuntimeException> exF) |
default LFltBinaryOperator |
trying(ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
default LFltBinaryOperator |
tryingThen(LToFltFunction<Throwable> handler) |
default float |
tupleApplyAsFlt(LFltPair args) |
static LFltBinaryOperator |
uncurry(LFltFunction<LFltUnaryOperator> func) |
isOperatorisFunctionformatTo, isAction, isConsumer, isPredicate, isSupplierisThrowingisThrowingstatic final String DESCRIPTION
default float applyAsFlt(float a1,
float a2)
float applyAsFltX(float a1,
float a2)
throws Throwable
Implement this, but call applyAsFlt(float a1,float a2)
Throwabledefault float tupleApplyAsFlt(LFltPair args)
default float handlingApplyAsFlt(float a1,
float a2,
HandlingInstructions<Throwable,RuntimeException> handling)
Function call that handles exceptions according to the instructions.
default LFltBinaryOperator handling(HandlingInstructions<Throwable,RuntimeException> handling)
default float applyAsFlt(float a1,
float a2,
@Nonnull
ExWMF<RuntimeException> exF,
@Nonnull
String newMessage,
@Nullable
Object... messageParams)
default LFltBinaryOperator trying(@Nonnull ExWMF<RuntimeException> exF, @Nonnull String newMessage, @Nullable Object... messageParams)
default float applyAsFlt(float a1,
float a2,
@Nonnull
ExWF<RuntimeException> exF)
default LFltBinaryOperator trying(@Nonnull ExWF<RuntimeException> exF)
default float applyAsFltThen(float a1,
float a2,
@Nonnull
LToFltFunction<Throwable> handler)
default LFltBinaryOperator tryingThen(@Nonnull LToFltFunction<Throwable> handler)
default float nestingApplyAsFlt(float a1,
float a2)
Function call that handles exceptions by always nesting checked exceptions and propagating the others as is.
default float shovingApplyAsFlt(float a1,
float a2)
Function call that handles exceptions by always propagating them as is, even when they are undeclared checked ones.
static float handlingApplyAsFlt(float a1,
float a2,
LFltBinaryOperator func,
HandlingInstructions<Throwable,RuntimeException> handling)
static float tryApplyAsFlt(float a1,
float a2,
LFltBinaryOperator func)
static float tryApplyAsFlt(float a1,
float a2,
LFltBinaryOperator func,
@Nonnull
ExWMF<RuntimeException> exF,
@Nonnull
String newMessage,
@Nullable
Object... messageParams)
static float tryApplyAsFlt(float a1,
float a2,
LFltBinaryOperator func,
@Nonnull
ExWF<RuntimeException> exF)
static float tryApplyAsFltThen(float a1,
float a2,
LFltBinaryOperator func,
@Nonnull
LToFltFunction<Throwable> handler)
default float failSafeApplyAsFlt(float a1,
float a2,
@Nonnull
LFltBinaryOperator failSafe)
static float failSafeApplyAsFlt(float a1,
float a2,
LFltBinaryOperator func,
@Nonnull
LFltBinaryOperator failSafe)
static LFltBinaryOperator failSafe(LFltBinaryOperator func, @Nonnull LFltBinaryOperator failSafe)
default float nonNullApplyAsFlt(float a1,
float 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 void fromTo(int min_i,
int max_i,
float a1,
float a2,
LFltBinaryOperator func)
From-To. Intended to be used with non-capturing lambda.
static void fromTill(int min_i,
int max_i,
float a1,
float a2,
LFltBinaryOperator func)
From-To. Intended to be used with non-capturing lambda.
static void times(int max_i,
float a1,
float a2,
LFltBinaryOperator func)
From-To. Intended to be used with non-capturing lambda.
default LFltUnaryOperator lShrink(LFltUnaryOperator left)
default LFltUnaryOperator lShrinkc(float a1)
static LFltUnaryOperator lShrinked(LFltUnaryOperator left, LFltBinaryOperator func)
static LFltUnaryOperator lShrinkedc(float a1, LFltBinaryOperator func)
default LFltUnaryOperator rShrink(LFltUnaryOperator right)
default LFltUnaryOperator rShrinkc(float a2)
static LFltUnaryOperator rShrinked(LFltUnaryOperator right, LFltBinaryOperator func)
static LFltUnaryOperator rShrinkedc(float a2, LFltBinaryOperator func)
static LFltBinaryOperator uncurry(LFltFunction<LFltUnaryOperator> func)
default LFltSupplier capture(float a1, float a2)
Captures arguments but delays the evaluation.
static LFltBinaryOperator constant(float r)
Creates function that always returns the same value.
@Nonnull static LFltBinaryOperator apply1stAsFlt(@Nonnull LFltUnaryOperator func)
Captures single parameter function into this interface where only 1st parameter will be used.
@Nonnull static LFltBinaryOperator apply2ndAsFlt(@Nonnull LFltUnaryOperator func)
Captures single parameter function into this interface where only 2nd parameter will be used.
@Nonnull static LFltBinaryOperator fltBinaryOp(@Nonnull LFltBinaryOperator lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
@Nonnull static LFltBinaryOperator recursive(@Nonnull LFunction<LFltBinaryOperator,LFltBinaryOperator> selfLambda)
@Nonnull static LFltBinaryOperator fltBinaryOpThrowing(@Nonnull ExF<Throwable> exF)
@Nonnull static LFltBinaryOperator fltBinaryOpThrowing(String message, @Nonnull ExMF<Throwable> exF)
static float call(float a1,
float a2,
@Nonnull
LFltBinaryOperator lambda)
@Nonnull static LFltBinaryOperator safe()
Safe instance. That always returns the same value (as produceFloat).
@Nonnull static LSupplier<LFltBinaryOperator> safeSupplier()
Safe instance supplier. Returns supplier of safe() instance.
@Nonnull static LFltBinaryOperator safe(@Nullable LFltBinaryOperator other)
Safe wrapping. Either argument function is returned (if it is not null) or safe() instance.
@Nonnull static LSupplier<LFltBinaryOperator> safeSupplier(@Nullable LSupplier<LFltBinaryOperator> supplier)
Safe supplier. Either argument supplier is returned (if it is not null) or supplier of safe() instance.
@Nonnull static LFltBinaryOperator minBy(@Nonnull Comparator<Float> comparator)
Creates function that returns the lesser value according to the comparator.
java.util.function.BinaryOperator#minBy}@Nonnull static LFltBinaryOperator maxBy(@Nonnull Comparator<Float> comparator)
Creates function that returns the lesser value according to the comparator.
java.util.function.BinaryOperator#maxBy}@Nonnull static LFltBinaryOperator min()
Returns function that returns the lower value.
java.util.function.BinaryOperator#minBy}@Nonnull static LFltBinaryOperator max()
Returns function that returns the higher value.
java.util.function.BinaryOperator#maxBy}@Nonnull default LFltBinaryOperator compose(@Nonnull LFltUnaryOperator before1, @Nonnull LFltUnaryOperator before2)
Allows to manipulate the domain of the function.
static LFltBinaryOperator composed(@Nonnull LFltUnaryOperator before1, @Nonnull LFltUnaryOperator before2, LFltBinaryOperator after)
@Nonnull default <V1,V2> LToFltBiFunction<V1,V2> fltBinaryOpCompose(@Nonnull LToFltFunction<? super V1> before1, @Nonnull LToFltFunction<? super V2> before2)
Allows to manipulate the domain of the function.
static <V1,V2> LToFltBiFunction<V1,V2> composed(@Nonnull LToFltFunction<? super V1> before1, @Nonnull LToFltFunction<? super V2> before2, LFltBinaryOperator after)
@Nonnull default <V> LBiFltFunction<V> then(@Nonnull LFltFunction<? extends V> after)
Combines two functions together in a order.
@Nonnull default LFltBinaryOperator thenToFlt(@Nonnull LFltUnaryOperator after)
Combines two functions together in a order.
@Nonnull default LBiFltPredicate thenToBool(@Nonnull LFltPredicate after)
Combines two functions together in a order.
static float produceFloat(float a1,
float a2)
Does nothing (LFltBinaryOperator) Operator
default <C1,C2> void forEach(IndexedRead<C1,aType.aFloat> ia1, C1 source1, IndexedRead<C2,aType.aFloat> ia2, C2 source2, LFltConsumer 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, LFltConsumer 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, LFltConsumer 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, LFltConsumer 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.