@FunctionalInterface public interface LFltPredicate extends MetaPredicate, MetaInterface.NonThrowing, Codomain<aType.aBool>, Domain1<aType.aFloat>
Non-throwing functional interface (lambda) LFltPredicate for Java 8.
Type: predicate
Domain (lvl: 1): float a
Co-domain: boolean
| Modifier and Type | Interface and Description |
|---|---|
static class |
LFltPredicate.LFltPredicateSingle |
MetaInterface.NonThrowing, MetaInterface.Throwing<X>| Modifier and Type | Field and Description |
|---|---|
static String |
DESCRIPTION |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
alwaysFalse(float a)
Returns FALSE.
|
static boolean |
alwaysTrue(float a)
Returns TRUE.
|
default LFltPredicate |
and(LFltPredicate other)
Returns a predicate that represents the logical AND of evaluation of this predicate and the argument one.
|
default <V> LFltFunction<V> |
boolToFltFunc(LBoolFunction<? extends V> after)
Combines two functions together in a order.
|
default LFltPredicate |
boolToFltPred(LLogicalOperator after)
Combines two functions together in a order.
|
default LFltToByteFunction |
boolToFltToByteFunc(LBoolToByteFunction after)
Combines two functions together in a order.
|
default LFltToCharFunction |
boolToFltToCharFunc(LBoolToCharFunction after)
Combines two functions together in a order.
|
default LFltToDblFunction |
boolToFltToDblFunc(LBoolToDblFunction after)
Combines two functions together in a order.
|
default LFltToIntFunction |
boolToFltToIntFunc(LBoolToIntFunction after)
Combines two functions together in a order.
|
default LFltToLongFunction |
boolToFltToLongFunc(LBoolToLongFunction after)
Combines two functions together in a order.
|
default LFltToSrtFunction |
boolToFltToSrtFunc(LBoolToSrtFunction after)
Combines two functions together in a order.
|
default LFltUnaryOperator |
boolToFltUnaryOp(LBoolToFltFunction after)
Combines two functions together in a order.
|
static boolean |
call(float a,
LFltPredicate lambda) |
default LBoolSupplier |
capture(float a)
Captures arguments but delays the evaluation.
|
default LFltPredicate |
compose(LFltUnaryOperator before)
Allows to manipulate the domain of the function.
|
static LFltPredicate |
composed(LFltUnaryOperator before,
LFltPredicate after) |
static <V> LPredicate<V> |
composed(LToFltFunction<? super V> before,
LFltPredicate after) |
static LFltPredicate |
constant(boolean r)
Creates function that always returns the same value.
|
default boolean |
doApplyAsBoolean(float a)
For convenience, where “test()” makes things more confusing than “applyAsBoolean()”.
|
default boolean |
doIf(float a,
LAction action) |
default boolean |
doIf(float a,
LFltConsumer consumer) |
static boolean |
doIf(float a,
LFltPredicate predicate,
LAction action) |
static boolean |
doIf(float a,
LFltPredicate predicate,
LFltConsumer consumer) |
default <V> boolean |
doIf(V a1,
float a2,
LObjFltConsumer<V> consumer) |
default <V> boolean |
doIf(V a1,
int a2,
float a3,
LTieFltConsumer<? super V> consumer) |
default <V> int |
doIf(V a1,
int a2,
float a3,
LTieFltFunction<? super V> consumer) |
static LFltPredicate |
failSafe(LFltPredicate func,
LFltPredicate failSafe) |
default boolean |
failSafeTest(float a,
LFltPredicate failSafe) |
static boolean |
failSafeTest(float a,
LFltPredicate func,
LFltPredicate failSafe) |
default <C0> void |
filterForEach(IndexedRead<C0,aType.aFloat> ia,
C0 source,
LFltConsumer consumer)
For each element (or tuple) from arguments, calls the consumer if predicate test passes.
|
default <C0,I0> void |
filterIterate(SequentialRead<C0,I0,aType.aFloat> sa,
C0 source,
LFltConsumer consumer)
For each element (or tuple) from arguments, calls the consumer if predicate test passes.
|
static LFltPredicate |
fltPred(LFltPredicate lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
|
default <V> LPredicate<V> |
fltPredCompose(LToFltFunction<? super V> before)
Allows to manipulate the domain of the function.
|
static LFltPredicate |
fltPredThrowing(ExF<Throwable> exF) |
static LFltPredicate |
fltPredThrowing(String message,
ExMF<Throwable> exF) |
static void |
fromTill(int min_i,
int max_i,
float a,
LFltPredicate func)
From-To.
|
static void |
fromTo(int min_i,
int max_i,
float a,
LFltPredicate func)
From-To.
|
default String |
functionalInterfaceDescription()
Returns description of the functional interface.
|
default LFltPredicate |
handling(HandlingInstructions<Throwable,RuntimeException> handling) |
default boolean |
handlingTest(float a,
HandlingInstructions<Throwable,RuntimeException> handling)
Function call that handles exceptions according to the instructions.
|
static boolean |
handlingTest(float a,
LFltPredicate func,
HandlingInstructions<Throwable,RuntimeException> handling) |
static LFltPredicate |
isEqual(float target)
Creates predicate that evaluates if an object is equal with the argument one.
|
default LFltPredicate |
negate()
Returns a predicate that represents the logical negation of this predicate.
|
default boolean |
nestingTest(float a)
Function call that handles exceptions by always nesting checked exceptions and propagating the others as is.
|
default boolean |
nonNullTest(float a)
Just to mirror the method: Ensures the result is not null
|
default LFltPredicate |
or(LFltPredicate other)
Returns a predicate that represents the logical OR of evaluation of this predicate and the argument one.
|
static LFltPredicate |
recursive(LFunction<LFltPredicate,LFltPredicate> selfLambda) |
static LFltPredicate |
safe()
Safe instance.
|
static LFltPredicate |
safe(LFltPredicate other)
Safe wrapping.
|
static LSupplier<LFltPredicate> |
safeSupplier()
Safe instance supplier.
|
static LSupplier<LFltPredicate> |
safeSupplier(LSupplier<LFltPredicate> supplier)
Safe supplier.
|
default boolean |
shovingTest(float a)
Function call that handles exceptions by always propagating them as is, even when they are undeclared checked ones.
|
default boolean |
test(float a) |
default boolean |
test(float a,
ExWF<RuntimeException> exF) |
default boolean |
test(float a,
ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
default boolean |
testThen(float a,
LPredicate<Throwable> handler) |
boolean |
testX(float a)
Implement this, but call test(float a)
|
static void |
throwIf(float a,
LFltPredicate pred,
ExMF<RuntimeException> factory,
String newMessage,
Object... messageParams) |
static void |
throwIfNot(float a,
LFltPredicate pred,
ExMF<RuntimeException> factory,
String newMessage,
Object... messageParams) |
default <V,C0> int |
tieForEach(V v,
IndexedRead<C0,aType.aFloat> ia,
C0 source,
LTieFltConsumer<V> consumer)
For each element (or tuple) from arguments, calls the consumer (with index) if predicate test passes.
|
default <V,C0,I0> int |
tieIterate(V v,
SequentialRead<C0,I0,aType.aFloat> sa,
C0 source,
LTieFltConsumer<V> consumer)
For each element (or tuple) from arguments, calls the consumer (with index) if predicate test passes.
|
static void |
times(int max_i,
float a,
LFltPredicate func)
From-To.
|
default LFltPredicate |
trying(ExWF<RuntimeException> exF) |
default LFltPredicate |
trying(ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
default LFltPredicate |
tryingThen(LPredicate<Throwable> handler) |
static boolean |
tryTest(float a,
LFltPredicate func) |
static boolean |
tryTest(float a,
LFltPredicate func,
ExWF<RuntimeException> exF) |
static boolean |
tryTest(float a,
LFltPredicate func,
ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
static boolean |
tryTestThen(float a,
LFltPredicate func,
LPredicate<Throwable> handler) |
default boolean |
tupleTest(LFltSingle args) |
default LFltPredicate |
xor(LFltPredicate other)
Returns a predicate that represents the logical XOR of evaluation of this predicate and the argument one.
|
isPredicateisFunctionformatTo, isAction, isConsumer, isOperator, isSupplierisThrowingisThrowingstatic final String DESCRIPTION
default boolean test(float a)
boolean testX(float a)
throws Throwable
Implement this, but call test(float a)
Throwabledefault boolean tupleTest(LFltSingle args)
default boolean handlingTest(float a,
HandlingInstructions<Throwable,RuntimeException> handling)
Function call that handles exceptions according to the instructions.
default LFltPredicate handling(HandlingInstructions<Throwable,RuntimeException> handling)
default boolean test(float a,
@Nonnull
ExWMF<RuntimeException> exF,
@Nonnull
String newMessage,
@Nullable
Object... messageParams)
default LFltPredicate trying(@Nonnull ExWMF<RuntimeException> exF, @Nonnull String newMessage, @Nullable Object... messageParams)
default boolean test(float a,
@Nonnull
ExWF<RuntimeException> exF)
default LFltPredicate trying(@Nonnull ExWF<RuntimeException> exF)
default boolean testThen(float a,
@Nonnull
LPredicate<Throwable> handler)
default LFltPredicate tryingThen(@Nonnull LPredicate<Throwable> handler)
default boolean nestingTest(float a)
Function call that handles exceptions by always nesting checked exceptions and propagating the others as is.
default boolean shovingTest(float a)
Function call that handles exceptions by always propagating them as is, even when they are undeclared checked ones.
static boolean handlingTest(float a,
LFltPredicate func,
HandlingInstructions<Throwable,RuntimeException> handling)
static boolean tryTest(float a,
LFltPredicate func)
static boolean tryTest(float a,
LFltPredicate func,
@Nonnull
ExWMF<RuntimeException> exF,
@Nonnull
String newMessage,
@Nullable
Object... messageParams)
static boolean tryTest(float a,
LFltPredicate func,
@Nonnull
ExWF<RuntimeException> exF)
static boolean tryTestThen(float a,
LFltPredicate func,
@Nonnull
LPredicate<Throwable> handler)
default boolean failSafeTest(float a,
@Nonnull
LFltPredicate failSafe)
static boolean failSafeTest(float a,
LFltPredicate func,
@Nonnull
LFltPredicate failSafe)
static LFltPredicate failSafe(LFltPredicate func, @Nonnull LFltPredicate failSafe)
default boolean doIf(float a,
LAction action)
static boolean doIf(float a,
@Nonnull
LFltPredicate predicate,
@Nonnull
LAction action)
static boolean doIf(float a,
@Nonnull
LFltPredicate predicate,
@Nonnull
LFltConsumer consumer)
default boolean doIf(float a,
@Nonnull
LFltConsumer consumer)
static void throwIf(float a,
LFltPredicate pred,
ExMF<RuntimeException> factory,
@Nonnull
String newMessage,
@Nullable
Object... messageParams)
static void throwIfNot(float a,
LFltPredicate pred,
ExMF<RuntimeException> factory,
@Nonnull
String newMessage,
@Nullable
Object... messageParams)
default boolean nonNullTest(float a)
Just to mirror the method: Ensures the result is not null
default boolean doApplyAsBoolean(float a)
For convenience, where “test()” makes things more confusing than “applyAsBoolean()”.
@Nonnull default String functionalInterfaceDescription()
Returns description of the functional interface.
functionalInterfaceDescription in interface MetaFunctionalInterfacedefault <V> boolean doIf(V a1,
float a2,
LObjFltConsumer<V> consumer)
default <V> boolean doIf(V a1,
int a2,
float a3,
LTieFltConsumer<? super V> consumer)
default <V> int doIf(V a1,
int a2,
float a3,
LTieFltFunction<? super V> consumer)
static void fromTo(int min_i,
int max_i,
float a,
LFltPredicate func)
From-To. Intended to be used with non-capturing lambda.
static void fromTill(int min_i,
int max_i,
float a,
LFltPredicate func)
From-To. Intended to be used with non-capturing lambda.
static void times(int max_i,
float a,
LFltPredicate func)
From-To. Intended to be used with non-capturing lambda.
default LBoolSupplier capture(float a)
Captures arguments but delays the evaluation.
static LFltPredicate constant(boolean r)
Creates function that always returns the same value.
@Nonnull static LFltPredicate fltPred(@Nonnull LFltPredicate lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
@Nonnull static LFltPredicate recursive(@Nonnull LFunction<LFltPredicate,LFltPredicate> selfLambda)
@Nonnull static LFltPredicate fltPredThrowing(@Nonnull ExF<Throwable> exF)
@Nonnull static LFltPredicate fltPredThrowing(String message, @Nonnull ExMF<Throwable> exF)
static boolean call(float a,
@Nonnull
LFltPredicate lambda)
@Nonnull static LFltPredicate safe()
Safe instance. That always returns the same value (as alwaysFalse).
@Nonnull static LSupplier<LFltPredicate> safeSupplier()
Safe instance supplier. Returns supplier of safe() instance.
@Nonnull static LFltPredicate safe(@Nullable LFltPredicate other)
Safe wrapping. Either argument function is returned (if it is not null) or safe() instance.
@Nonnull static LSupplier<LFltPredicate> safeSupplier(@Nullable LSupplier<LFltPredicate> supplier)
Safe supplier. Either argument supplier is returned (if it is not null) or supplier of safe() instance.
@Nonnull default LFltPredicate negate()
Returns a predicate that represents the logical negation of this predicate.
java.util.function.Predicate#negate}@Nonnull default LFltPredicate and(@Nonnull LFltPredicate other)
Returns a predicate that represents the logical AND of evaluation of this predicate and the argument one.
java.util.function.Predicate#and()}@Nonnull default LFltPredicate or(@Nonnull LFltPredicate other)
Returns a predicate that represents the logical OR of evaluation of this predicate and the argument one.
java.util.function.Predicate#or}@Nonnull default LFltPredicate xor(@Nonnull LFltPredicate other)
Returns a predicate that represents the logical XOR of evaluation of this predicate and the argument one.
java.util.function.Predicate#or}@Nonnull static LFltPredicate isEqual(float target)
Creates predicate that evaluates if an object is equal with the argument one.
java.util.function.Predicate#isEqual()@Nonnull default LFltPredicate compose(@Nonnull LFltUnaryOperator before)
Allows to manipulate the domain of the function.
static LFltPredicate composed(@Nonnull LFltUnaryOperator before, LFltPredicate after)
@Nonnull default <V> LPredicate<V> fltPredCompose(@Nonnull LToFltFunction<? super V> before)
Allows to manipulate the domain of the function.
static <V> LPredicate<V> composed(@Nonnull LToFltFunction<? super V> before, LFltPredicate after)
@Nonnull default <V> LFltFunction<V> boolToFltFunc(@Nonnull LBoolFunction<? extends V> after)
Combines two functions together in a order.
@Nonnull default LFltToByteFunction boolToFltToByteFunc(@Nonnull LBoolToByteFunction after)
Combines two functions together in a order.
@Nonnull default LFltToSrtFunction boolToFltToSrtFunc(@Nonnull LBoolToSrtFunction after)
Combines two functions together in a order.
@Nonnull default LFltToIntFunction boolToFltToIntFunc(@Nonnull LBoolToIntFunction after)
Combines two functions together in a order.
@Nonnull default LFltToLongFunction boolToFltToLongFunc(@Nonnull LBoolToLongFunction after)
Combines two functions together in a order.
@Nonnull default LFltUnaryOperator boolToFltUnaryOp(@Nonnull LBoolToFltFunction after)
Combines two functions together in a order.
@Nonnull default LFltToDblFunction boolToFltToDblFunc(@Nonnull LBoolToDblFunction after)
Combines two functions together in a order.
@Nonnull default LFltToCharFunction boolToFltToCharFunc(@Nonnull LBoolToCharFunction after)
Combines two functions together in a order.
@Nonnull default LFltPredicate boolToFltPred(@Nonnull LLogicalOperator after)
Combines two functions together in a order.
static boolean alwaysTrue(float a)
Returns TRUE.
static boolean alwaysFalse(float a)
Returns FALSE.
default <C0> void filterForEach(IndexedRead<C0,aType.aFloat> ia, C0 source, LFltConsumer consumer)
For each element (or tuple) from arguments, calls the consumer if predicate test passes. Thread safety, fail-fast, fail-safety of this method is not expected.
default <C0,I0> void filterIterate(SequentialRead<C0,I0,aType.aFloat> sa, C0 source, LFltConsumer consumer)
For each element (or tuple) from arguments, calls the consumer if predicate test passes. Thread safety, fail-fast, fail-safety of this method depends highly on the arguments.
default <V,C0> int tieForEach(V v,
IndexedRead<C0,aType.aFloat> ia,
C0 source,
LTieFltConsumer<V> consumer)
For each element (or tuple) from arguments, calls the consumer (with index) if predicate test passes. First argument is designated as ‘target’ object. Thread safety, fail-fast, fail-safety of this method is not expected.
default <V,C0,I0> int tieIterate(V v,
SequentialRead<C0,I0,aType.aFloat> sa,
C0 source,
LTieFltConsumer<V> consumer)
For each element (or tuple) from arguments, calls the consumer (with index) if predicate test passes. First argument is designated as ‘target’ object. Thread safety, fail-fast, fail-safety of this method depends highly on the arguments.
Copyright © 2019. All rights reserved.