@FunctionalInterface public interface LFltToIntFunction extends MetaFunction, MetaInterface.NonThrowing, Codomain<aType.aInt>, Domain1<aType.aFloat>
Non-throwing functional interface (lambda) LFltToIntFunction for Java 8.
Type: function
Domain (lvl: 1): float a
Co-domain: int
| Modifier and Type | Interface and Description |
|---|---|
static class |
LFltToIntFunction.LFltToIntFunctionSingle |
MetaInterface.NonThrowing, MetaInterface.Throwing<X>| Modifier and Type | Field and Description |
|---|---|
static String |
DESCRIPTION |
| Modifier and Type | Method and Description |
|---|---|
default int |
applyAsInt(float a) |
default int |
applyAsInt(float a,
ExWF<RuntimeException> exF) |
default int |
applyAsInt(float a,
ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
default int |
applyAsIntThen(float a,
LToIntFunction<Throwable> handler) |
int |
applyAsIntX(float a)
Implement this, but call applyAsInt(float a)
|
static int |
call(float a,
LFltToIntFunction lambda) |
default LIntSupplier |
capture(float a)
Captures arguments but delays the evaluation.
|
default LFltToIntFunction |
compose(LFltUnaryOperator before)
Allows to manipulate the domain of the function.
|
static LFltToIntFunction |
composed(LFltUnaryOperator before,
LFltToIntFunction after) |
static <V> LToIntFunction<V> |
composed(LToFltFunction<? super V> before,
LFltToIntFunction after) |
static LFltToIntFunction |
constant(int r)
Creates function that always returns the same value.
|
static LFltToIntFunction |
failSafe(LFltToIntFunction func,
LFltToIntFunction failSafe) |
default int |
failSafeApplyAsInt(float a,
LFltToIntFunction failSafe) |
static int |
failSafeApplyAsInt(float a,
LFltToIntFunction func,
LFltToIntFunction failSafe) |
static LFltToIntFunction |
fltToIntFunc(LFltToIntFunction lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
|
default <V> LToIntFunction<V> |
fltToIntFuncCompose(LToFltFunction<? super V> before)
Allows to manipulate the domain of the function.
|
static LFltToIntFunction |
fltToIntFuncThrowing(ExF<Throwable> exF) |
static LFltToIntFunction |
fltToIntFuncThrowing(String message,
ExMF<Throwable> exF) |
default <C0> void |
forEach(IndexedRead<C0,aType.aFloat> ia,
C0 source,
LIntConsumer 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 a,
LFltToIntFunction func)
From-To.
|
static void |
fromTo(int min_i,
int max_i,
float a,
LFltToIntFunction func)
From-To.
|
default String |
functionalInterfaceDescription()
Returns description of the functional interface.
|
default LFltToIntFunction |
handling(HandlingInstructions<Throwable,RuntimeException> handling) |
default int |
handlingApplyAsInt(float a,
HandlingInstructions<Throwable,RuntimeException> handling)
Function call that handles exceptions according to the instructions.
|
static int |
handlingApplyAsInt(float a,
LFltToIntFunction func,
HandlingInstructions<Throwable,RuntimeException> handling) |
default <C0,I0> void |
iterate(SequentialRead<C0,I0,aType.aFloat> sa,
C0 source,
LIntConsumer consumer)
For each element (or tuple) from arguments, calls the function and passes the result to consumer.
|
default int |
nestingApplyAsInt(float a)
Function call that handles exceptions by always nesting checked exceptions and propagating the others as is.
|
default int |
nonNullApplyAsInt(float a)
Just to mirror the method: Ensures the result is not null
|
static int |
produceInt(float a)
Does nothing (LFltToIntFunction) Function
|
static LFltToIntFunction |
recursive(LFunction<LFltToIntFunction,LFltToIntFunction> selfLambda) |
static LFltToIntFunction |
safe()
Safe instance.
|
static LFltToIntFunction |
safe(LFltToIntFunction other)
Safe wrapping.
|
static LSupplier<LFltToIntFunction> |
safeSupplier()
Safe instance supplier.
|
static LSupplier<LFltToIntFunction> |
safeSupplier(LSupplier<LFltToIntFunction> supplier)
Safe supplier.
|
default int |
shovingApplyAsInt(float a)
Function call that handles exceptions by always propagating them as is, even when they are undeclared checked ones.
|
default <V> LFltFunction<V> |
then(LIntFunction<? extends V> after)
Combines two functions together in a order.
|
default LFltPredicate |
thenToBool(LIntPredicate after)
Combines two functions together in a order.
|
default LFltToByteFunction |
thenToByte(LIntToByteFunction after)
Combines two functions together in a order.
|
default LFltToCharFunction |
thenToChar(LIntToCharFunction after)
Combines two functions together in a order.
|
default LFltToDblFunction |
thenToDbl(LIntToDblFunction after)
Combines two functions together in a order.
|
default LFltUnaryOperator |
thenToFlt(LIntToFltFunction after)
Combines two functions together in a order.
|
default LFltToIntFunction |
thenToInt(LIntUnaryOperator after)
Combines two functions together in a order.
|
default LFltToLongFunction |
thenToLong(LIntToLongFunction after)
Combines two functions together in a order.
|
default LFltToSrtFunction |
thenToSrt(LIntToSrtFunction after)
Combines two functions together in a order.
|
static void |
times(int max_i,
float a,
LFltToIntFunction func)
From-To.
|
static int |
tryApplyAsInt(float a,
LFltToIntFunction func) |
static int |
tryApplyAsInt(float a,
LFltToIntFunction func,
ExWF<RuntimeException> exF) |
static int |
tryApplyAsInt(float a,
LFltToIntFunction func,
ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
static int |
tryApplyAsIntThen(float a,
LFltToIntFunction func,
LToIntFunction<Throwable> handler) |
default LFltToIntFunction |
trying(ExWF<RuntimeException> exF) |
default LFltToIntFunction |
trying(ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
default LFltToIntFunction |
tryingThen(LToIntFunction<Throwable> handler) |
default int |
tupleApplyAsInt(LFltSingle args) |
isFunctionformatTo, isAction, isConsumer, isOperator, isPredicate, isSupplierisThrowingstatic final String DESCRIPTION
default int applyAsInt(float a)
int applyAsIntX(float a)
throws Throwable
Implement this, but call applyAsInt(float a)
Throwabledefault int tupleApplyAsInt(LFltSingle args)
default int handlingApplyAsInt(float a,
HandlingInstructions<Throwable,RuntimeException> handling)
Function call that handles exceptions according to the instructions.
default LFltToIntFunction handling(HandlingInstructions<Throwable,RuntimeException> handling)
default int applyAsInt(float a,
@Nonnull
ExWMF<RuntimeException> exF,
@Nonnull
String newMessage,
@Nullable
Object... messageParams)
default LFltToIntFunction trying(@Nonnull ExWMF<RuntimeException> exF, @Nonnull String newMessage, @Nullable Object... messageParams)
default int applyAsInt(float a,
@Nonnull
ExWF<RuntimeException> exF)
default LFltToIntFunction trying(@Nonnull ExWF<RuntimeException> exF)
default int applyAsIntThen(float a,
@Nonnull
LToIntFunction<Throwable> handler)
default LFltToIntFunction tryingThen(@Nonnull LToIntFunction<Throwable> handler)
default int nestingApplyAsInt(float a)
Function call that handles exceptions by always nesting checked exceptions and propagating the others as is.
default int shovingApplyAsInt(float a)
Function call that handles exceptions by always propagating them as is, even when they are undeclared checked ones.
static int handlingApplyAsInt(float a,
LFltToIntFunction func,
HandlingInstructions<Throwable,RuntimeException> handling)
static int tryApplyAsInt(float a,
LFltToIntFunction func)
static int tryApplyAsInt(float a,
LFltToIntFunction func,
@Nonnull
ExWMF<RuntimeException> exF,
@Nonnull
String newMessage,
@Nullable
Object... messageParams)
static int tryApplyAsInt(float a,
LFltToIntFunction func,
@Nonnull
ExWF<RuntimeException> exF)
static int tryApplyAsIntThen(float a,
LFltToIntFunction func,
@Nonnull
LToIntFunction<Throwable> handler)
default int failSafeApplyAsInt(float a,
@Nonnull
LFltToIntFunction failSafe)
static int failSafeApplyAsInt(float a,
LFltToIntFunction func,
@Nonnull
LFltToIntFunction failSafe)
static LFltToIntFunction failSafe(LFltToIntFunction func, @Nonnull LFltToIntFunction failSafe)
default int nonNullApplyAsInt(float a)
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 a,
LFltToIntFunction func)
From-To. Intended to be used with non-capturing lambda.
static void fromTill(int min_i,
int max_i,
float a,
LFltToIntFunction func)
From-To. Intended to be used with non-capturing lambda.
static void times(int max_i,
float a,
LFltToIntFunction func)
From-To. Intended to be used with non-capturing lambda.
default LIntSupplier capture(float a)
Captures arguments but delays the evaluation.
static LFltToIntFunction constant(int r)
Creates function that always returns the same value.
@Nonnull static LFltToIntFunction fltToIntFunc(@Nonnull LFltToIntFunction lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
@Nonnull static LFltToIntFunction recursive(@Nonnull LFunction<LFltToIntFunction,LFltToIntFunction> selfLambda)
@Nonnull static LFltToIntFunction fltToIntFuncThrowing(@Nonnull ExF<Throwable> exF)
@Nonnull static LFltToIntFunction fltToIntFuncThrowing(String message, @Nonnull ExMF<Throwable> exF)
static int call(float a,
@Nonnull
LFltToIntFunction lambda)
@Nonnull static LFltToIntFunction safe()
Safe instance. That always returns the same value (as produceInt).
@Nonnull static LSupplier<LFltToIntFunction> safeSupplier()
Safe instance supplier. Returns supplier of safe() instance.
@Nonnull static LFltToIntFunction safe(@Nullable LFltToIntFunction other)
Safe wrapping. Either argument function is returned (if it is not null) or safe() instance.
@Nonnull static LSupplier<LFltToIntFunction> safeSupplier(@Nullable LSupplier<LFltToIntFunction> supplier)
Safe supplier. Either argument supplier is returned (if it is not null) or supplier of safe() instance.
@Nonnull default LFltToIntFunction compose(@Nonnull LFltUnaryOperator before)
Allows to manipulate the domain of the function.
static LFltToIntFunction composed(@Nonnull LFltUnaryOperator before, LFltToIntFunction after)
@Nonnull default <V> LToIntFunction<V> fltToIntFuncCompose(@Nonnull LToFltFunction<? super V> before)
Allows to manipulate the domain of the function.
static <V> LToIntFunction<V> composed(@Nonnull LToFltFunction<? super V> before, LFltToIntFunction after)
@Nonnull default <V> LFltFunction<V> then(@Nonnull LIntFunction<? extends V> after)
Combines two functions together in a order.
@Nonnull default LFltToByteFunction thenToByte(@Nonnull LIntToByteFunction after)
Combines two functions together in a order.
@Nonnull default LFltToSrtFunction thenToSrt(@Nonnull LIntToSrtFunction after)
Combines two functions together in a order.
@Nonnull default LFltToIntFunction thenToInt(@Nonnull LIntUnaryOperator after)
Combines two functions together in a order.
@Nonnull default LFltToLongFunction thenToLong(@Nonnull LIntToLongFunction after)
Combines two functions together in a order.
@Nonnull default LFltUnaryOperator thenToFlt(@Nonnull LIntToFltFunction after)
Combines two functions together in a order.
@Nonnull default LFltToDblFunction thenToDbl(@Nonnull LIntToDblFunction after)
Combines two functions together in a order.
@Nonnull default LFltToCharFunction thenToChar(@Nonnull LIntToCharFunction after)
Combines two functions together in a order.
@Nonnull default LFltPredicate thenToBool(@Nonnull LIntPredicate after)
Combines two functions together in a order.
static int produceInt(float a)
Does nothing (LFltToIntFunction) Function
default <C0> void forEach(IndexedRead<C0,aType.aFloat> ia, C0 source, LIntConsumer 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 <C0,I0> void iterate(SequentialRead<C0,I0,aType.aFloat> sa, C0 source, LIntConsumer 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.