@FunctionalInterface public interface LFltToLongFunction extends MetaFunction, MetaInterface.NonThrowing, Codomain<aType.aLong>, Domain1<aType.aFloat>
Non-throwing functional interface (lambda) LFltToLongFunction for Java 8.
Type: function
Domain (lvl: 1): float a
Co-domain: long
| Modifier and Type | Interface and Description |
|---|---|
static class |
LFltToLongFunction.LFltToLongFunctionSingle |
MetaInterface.NonThrowing, MetaInterface.Throwing<X>| Modifier and Type | Field and Description |
|---|---|
static String |
DESCRIPTION |
| Modifier and Type | Method and Description |
|---|---|
default long |
applyAsLong(float a) |
default long |
applyAsLong(float a,
ExWF<RuntimeException> exF) |
default long |
applyAsLong(float a,
ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
default long |
applyAsLongThen(float a,
LToLongFunction<Throwable> handler) |
long |
applyAsLongX(float a)
Implement this, but call applyAsLong(float a)
|
static long |
call(float a,
LFltToLongFunction lambda) |
default LLongSupplier |
capture(float a)
Captures arguments but delays the evaluation.
|
default LFltToLongFunction |
compose(LFltUnaryOperator before)
Allows to manipulate the domain of the function.
|
static LFltToLongFunction |
composed(LFltUnaryOperator before,
LFltToLongFunction after) |
static <V> LToLongFunction<V> |
composed(LToFltFunction<? super V> before,
LFltToLongFunction after) |
static LFltToLongFunction |
constant(long r)
Creates function that always returns the same value.
|
static LFltToLongFunction |
failSafe(LFltToLongFunction func,
LFltToLongFunction failSafe) |
default long |
failSafeApplyAsLong(float a,
LFltToLongFunction failSafe) |
static long |
failSafeApplyAsLong(float a,
LFltToLongFunction func,
LFltToLongFunction failSafe) |
static LFltToLongFunction |
fltToLongFunc(LFltToLongFunction lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
|
default <V> LToLongFunction<V> |
fltToLongFuncCompose(LToFltFunction<? super V> before)
Allows to manipulate the domain of the function.
|
static LFltToLongFunction |
fltToLongFuncThrowing(ExF<Throwable> exF) |
static LFltToLongFunction |
fltToLongFuncThrowing(String message,
ExMF<Throwable> exF) |
default <C0> void |
forEach(IndexedRead<C0,aType.aFloat> ia,
C0 source,
LLongConsumer 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,
LFltToLongFunction func)
From-To.
|
static void |
fromTo(int min_i,
int max_i,
float a,
LFltToLongFunction func)
From-To.
|
default String |
functionalInterfaceDescription()
Returns description of the functional interface.
|
default LFltToLongFunction |
handling(HandlingInstructions<Throwable,RuntimeException> handling) |
default long |
handlingApplyAsLong(float a,
HandlingInstructions<Throwable,RuntimeException> handling)
Function call that handles exceptions according to the instructions.
|
static long |
handlingApplyAsLong(float a,
LFltToLongFunction func,
HandlingInstructions<Throwable,RuntimeException> handling) |
default <C0,I0> void |
iterate(SequentialRead<C0,I0,aType.aFloat> sa,
C0 source,
LLongConsumer consumer)
For each element (or tuple) from arguments, calls the function and passes the result to consumer.
|
default long |
nestingApplyAsLong(float a)
Function call that handles exceptions by always nesting checked exceptions and propagating the others as is.
|
default long |
nonNullApplyAsLong(float a)
Just to mirror the method: Ensures the result is not null
|
static long |
produceLong(float a)
Does nothing (LFltToLongFunction) Function
|
static LFltToLongFunction |
recursive(LFunction<LFltToLongFunction,LFltToLongFunction> selfLambda) |
static LFltToLongFunction |
safe()
Safe instance.
|
static LFltToLongFunction |
safe(LFltToLongFunction other)
Safe wrapping.
|
static LSupplier<LFltToLongFunction> |
safeSupplier()
Safe instance supplier.
|
static LSupplier<LFltToLongFunction> |
safeSupplier(LSupplier<LFltToLongFunction> supplier)
Safe supplier.
|
default long |
shovingApplyAsLong(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(LLongFunction<? extends V> after)
Combines two functions together in a order.
|
default LFltPredicate |
thenToBool(LLongPredicate after)
Combines two functions together in a order.
|
default LFltToByteFunction |
thenToByte(LLongToByteFunction after)
Combines two functions together in a order.
|
default LFltToCharFunction |
thenToChar(LLongToCharFunction after)
Combines two functions together in a order.
|
default LFltToDblFunction |
thenToDbl(LLongToDblFunction after)
Combines two functions together in a order.
|
default LFltUnaryOperator |
thenToFlt(LLongToFltFunction after)
Combines two functions together in a order.
|
default LFltToIntFunction |
thenToInt(LLongToIntFunction after)
Combines two functions together in a order.
|
default LFltToLongFunction |
thenToLong(LLongUnaryOperator after)
Combines two functions together in a order.
|
default LFltToSrtFunction |
thenToSrt(LLongToSrtFunction after)
Combines two functions together in a order.
|
static void |
times(int max_i,
float a,
LFltToLongFunction func)
From-To.
|
static long |
tryApplyAsLong(float a,
LFltToLongFunction func) |
static long |
tryApplyAsLong(float a,
LFltToLongFunction func,
ExWF<RuntimeException> exF) |
static long |
tryApplyAsLong(float a,
LFltToLongFunction func,
ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
static long |
tryApplyAsLongThen(float a,
LFltToLongFunction func,
LToLongFunction<Throwable> handler) |
default LFltToLongFunction |
trying(ExWF<RuntimeException> exF) |
default LFltToLongFunction |
trying(ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
default LFltToLongFunction |
tryingThen(LToLongFunction<Throwable> handler) |
default long |
tupleApplyAsLong(LFltSingle args) |
isFunctionformatTo, isAction, isConsumer, isOperator, isPredicate, isSupplierisThrowingstatic final String DESCRIPTION
default long applyAsLong(float a)
long applyAsLongX(float a)
throws Throwable
Implement this, but call applyAsLong(float a)
Throwabledefault long tupleApplyAsLong(LFltSingle args)
default long handlingApplyAsLong(float a,
HandlingInstructions<Throwable,RuntimeException> handling)
Function call that handles exceptions according to the instructions.
default LFltToLongFunction handling(HandlingInstructions<Throwable,RuntimeException> handling)
default long applyAsLong(float a,
@Nonnull
ExWMF<RuntimeException> exF,
@Nonnull
String newMessage,
@Nullable
Object... messageParams)
default LFltToLongFunction trying(@Nonnull ExWMF<RuntimeException> exF, @Nonnull String newMessage, @Nullable Object... messageParams)
default long applyAsLong(float a,
@Nonnull
ExWF<RuntimeException> exF)
default LFltToLongFunction trying(@Nonnull ExWF<RuntimeException> exF)
default long applyAsLongThen(float a,
@Nonnull
LToLongFunction<Throwable> handler)
default LFltToLongFunction tryingThen(@Nonnull LToLongFunction<Throwable> handler)
default long nestingApplyAsLong(float a)
Function call that handles exceptions by always nesting checked exceptions and propagating the others as is.
default long shovingApplyAsLong(float a)
Function call that handles exceptions by always propagating them as is, even when they are undeclared checked ones.
static long handlingApplyAsLong(float a,
LFltToLongFunction func,
HandlingInstructions<Throwable,RuntimeException> handling)
static long tryApplyAsLong(float a,
LFltToLongFunction func)
static long tryApplyAsLong(float a,
LFltToLongFunction func,
@Nonnull
ExWMF<RuntimeException> exF,
@Nonnull
String newMessage,
@Nullable
Object... messageParams)
static long tryApplyAsLong(float a,
LFltToLongFunction func,
@Nonnull
ExWF<RuntimeException> exF)
static long tryApplyAsLongThen(float a,
LFltToLongFunction func,
@Nonnull
LToLongFunction<Throwable> handler)
default long failSafeApplyAsLong(float a,
@Nonnull
LFltToLongFunction failSafe)
static long failSafeApplyAsLong(float a,
LFltToLongFunction func,
@Nonnull
LFltToLongFunction failSafe)
static LFltToLongFunction failSafe(LFltToLongFunction func, @Nonnull LFltToLongFunction failSafe)
default long nonNullApplyAsLong(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,
LFltToLongFunction func)
From-To. Intended to be used with non-capturing lambda.
static void fromTill(int min_i,
int max_i,
float a,
LFltToLongFunction func)
From-To. Intended to be used with non-capturing lambda.
static void times(int max_i,
float a,
LFltToLongFunction func)
From-To. Intended to be used with non-capturing lambda.
default LLongSupplier capture(float a)
Captures arguments but delays the evaluation.
static LFltToLongFunction constant(long r)
Creates function that always returns the same value.
@Nonnull static LFltToLongFunction fltToLongFunc(@Nonnull LFltToLongFunction lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
@Nonnull static LFltToLongFunction recursive(@Nonnull LFunction<LFltToLongFunction,LFltToLongFunction> selfLambda)
@Nonnull static LFltToLongFunction fltToLongFuncThrowing(@Nonnull ExF<Throwable> exF)
@Nonnull static LFltToLongFunction fltToLongFuncThrowing(String message, @Nonnull ExMF<Throwable> exF)
static long call(float a,
@Nonnull
LFltToLongFunction lambda)
@Nonnull static LFltToLongFunction safe()
Safe instance. That always returns the same value (as produceLong).
@Nonnull static LSupplier<LFltToLongFunction> safeSupplier()
Safe instance supplier. Returns supplier of safe() instance.
@Nonnull static LFltToLongFunction safe(@Nullable LFltToLongFunction other)
Safe wrapping. Either argument function is returned (if it is not null) or safe() instance.
@Nonnull static LSupplier<LFltToLongFunction> safeSupplier(@Nullable LSupplier<LFltToLongFunction> supplier)
Safe supplier. Either argument supplier is returned (if it is not null) or supplier of safe() instance.
@Nonnull default LFltToLongFunction compose(@Nonnull LFltUnaryOperator before)
Allows to manipulate the domain of the function.
static LFltToLongFunction composed(@Nonnull LFltUnaryOperator before, LFltToLongFunction after)
@Nonnull default <V> LToLongFunction<V> fltToLongFuncCompose(@Nonnull LToFltFunction<? super V> before)
Allows to manipulate the domain of the function.
static <V> LToLongFunction<V> composed(@Nonnull LToFltFunction<? super V> before, LFltToLongFunction after)
@Nonnull default <V> LFltFunction<V> then(@Nonnull LLongFunction<? extends V> after)
Combines two functions together in a order.
@Nonnull default LFltToByteFunction thenToByte(@Nonnull LLongToByteFunction after)
Combines two functions together in a order.
@Nonnull default LFltToSrtFunction thenToSrt(@Nonnull LLongToSrtFunction after)
Combines two functions together in a order.
@Nonnull default LFltToIntFunction thenToInt(@Nonnull LLongToIntFunction after)
Combines two functions together in a order.
@Nonnull default LFltToLongFunction thenToLong(@Nonnull LLongUnaryOperator after)
Combines two functions together in a order.
@Nonnull default LFltUnaryOperator thenToFlt(@Nonnull LLongToFltFunction after)
Combines two functions together in a order.
@Nonnull default LFltToDblFunction thenToDbl(@Nonnull LLongToDblFunction after)
Combines two functions together in a order.
@Nonnull default LFltToCharFunction thenToChar(@Nonnull LLongToCharFunction after)
Combines two functions together in a order.
@Nonnull default LFltPredicate thenToBool(@Nonnull LLongPredicate after)
Combines two functions together in a order.
static long produceLong(float a)
Does nothing (LFltToLongFunction) Function
default <C0> void forEach(IndexedRead<C0,aType.aFloat> ia, C0 source, LLongConsumer 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, LLongConsumer 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.