@FunctionalInterface public interface LObjFltPredicate<T> extends MetaPredicate, MetaInterface.NonThrowing, Codomain<aType.aBool>, Domain2<aType.a<T>,aType.aFloat>
Non-throwing functional interface (lambda) LObjFltPredicate for Java 8.
Type: predicate
Domain (lvl: 2): T a1,float a2
Co-domain: boolean
| Modifier and Type | Interface and Description |
|---|---|
static interface |
LObjFltPredicate.LFltObjPred<T>
Permutation of LObjFltPredicate for method references.
|
static class |
LObjFltPredicate.LObjFltPredicateSingle<T> |
MetaInterface.NonThrowing, MetaInterface.Throwing<X>| Modifier and Type | Field and Description |
|---|---|
static String |
DESCRIPTION |
| Modifier and Type | Method and Description |
|---|---|
static <T> boolean |
alwaysFalse(float a2,
T a1)
Returns FALSE.
|
static <T> boolean |
alwaysFalse(T a1,
float a2)
Returns FALSE.
|
static <T> boolean |
alwaysTrue(float a2,
T a1)
Returns TRUE.
|
static <T> boolean |
alwaysTrue(T a1,
float a2)
Returns TRUE.
|
default LObjFltPredicate<T> |
and(LObjFltPredicate<? super T> other)
Returns a predicate that represents the logical AND of evaluation of this predicate and the argument one.
|
default <V> LObjFltFunction<T,V> |
boolToObjFltFunc(LBoolFunction<? extends V> after)
Combines two functions together in a order.
|
default LObjFltPredicate<T> |
boolToObjFltPred(LLogicalOperator after)
Combines two functions together in a order.
|
static <T> boolean |
call(T a1,
float a2,
LObjFltPredicate<T> lambda) |
default LBoolSupplier |
capture(T a1,
float a2)
Captures arguments but delays the evaluation.
|
default <V2> LObjFltPredicate<V2> |
cast()
Cast that replace generics.
|
static <V2,T> LObjFltPredicate<V2> |
cast(LObjFltPredicate<T> function)
Cast that replace generics.
|
default <V1> LObjFltPredicate<V1> |
compose(LFunction<? super V1,? extends T> before1,
LFltUnaryOperator before2)
Allows to manipulate the domain of the function.
|
static <V1,T> LObjFltPredicate<V1> |
composed(LFunction<? super V1,? extends T> before1,
LFltUnaryOperator before2,
LObjFltPredicate<T> after) |
static <V1,V2,T> LBiPredicate<V1,V2> |
composed(LFunction<? super V1,? extends T> before1,
LToFltFunction<? super V2> before2,
LObjFltPredicate<T> after) |
static <T> LObjFltPredicate<T> |
constant(boolean r)
Creates function that always returns the same value.
|
default boolean |
doApplyAsBoolean(T a1,
float a2)
For convenience, where “test()” makes things more confusing than “applyAsBoolean()”.
|
default boolean |
doIf(T a1,
float a2,
LAction action) |
default boolean |
doIf(T a1,
float a2,
LObjFltConsumer<? super T> consumer) |
static <T> boolean |
doIf(T a1,
float a2,
LObjFltPredicate<T> predicate,
LAction action) |
static <T> boolean |
doIf(T a1,
float a2,
LObjFltPredicate<T> predicate,
LObjFltConsumer<? super T> consumer) |
default <V> boolean |
doIf(V a1,
T a2,
float a3,
LBiObjFltConsumer<V,? super T> consumer) |
static <T> LObjFltPredicate<T> |
failSafe(LObjFltPredicate<T> func,
LObjFltPredicate<T> failSafe) |
default boolean |
failSafeTest(T a1,
float a2,
LObjFltPredicate<T> failSafe) |
static <T> boolean |
failSafeTest(T a1,
float a2,
LObjFltPredicate<T> func,
LObjFltPredicate<T> failSafe) |
default <C1,C2> void |
filterForEach(IndexedRead<C1,aType.a<T>> ia1,
C1 source1,
IndexedRead<C2,aType.aFloat> ia2,
C2 source2,
LObjFltConsumer<? super T> consumer)
For each element (or tuple) from arguments, calls the consumer if predicate test passes.
|
default <C1,C2,I2> void |
filterIterate(IndexedRead<C1,aType.a<T>> ia1,
C1 source1,
SequentialRead<C2,I2,aType.aFloat> sa2,
C2 source2,
LObjFltConsumer<? super T> consumer)
For each element (or tuple) from arguments, calls the consumer if predicate test passes.
|
default <C1,I1,C2> void |
filterIterate(SequentialRead<C1,I1,aType.a<T>> sa1,
C1 source1,
IndexedRead<C2,aType.aFloat> ia2,
C2 source2,
LObjFltConsumer<? super T> consumer)
For each element (or tuple) from arguments, calls the consumer if predicate test passes.
|
default <C1,I1,C2,I2> |
filterIterate(SequentialRead<C1,I1,aType.a<T>> sa1,
C1 source1,
SequentialRead<C2,I2,aType.aFloat> sa2,
C2 source2,
LObjFltConsumer<? super T> consumer)
For each element (or tuple) from arguments, calls the consumer if predicate test passes.
|
static <T> LObjFltPredicate.LFltObjPred<T> |
fltObjPred(LObjFltPredicate.LFltObjPred<T> lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
|
static <T> void |
fromTill(int min_i,
int max_i,
T a1,
float a2,
LObjFltPredicate<T> func)
From-To.
|
static <T> void |
fromTo(int min_i,
int max_i,
T a1,
float a2,
LObjFltPredicate<T> func)
From-To.
|
default String |
functionalInterfaceDescription()
Returns description of the functional interface.
|
default LObjFltPredicate<T> |
handling(HandlingInstructions<Throwable,RuntimeException> handling) |
default boolean |
handlingTest(T a1,
float a2,
HandlingInstructions<Throwable,RuntimeException> handling)
Function call that handles exceptions according to the instructions.
|
static <T> boolean |
handlingTest(T a1,
float a2,
LObjFltPredicate<T> func,
HandlingInstructions<Throwable,RuntimeException> handling) |
static <T> LObjFltPredicate<T> |
isEqual(T v1,
float v2)
Creates predicate that evaluates if an object is equal with the argument one.
|
default LFltPredicate |
lShrink(LFltFunction<T> left) |
default LFltPredicate |
lShrinkc(T a1) |
static <T> LFltPredicate |
lShrinked(LFltFunction<T> left,
LObjFltPredicate<T> func) |
static <T> LFltPredicate |
lShrinkedc(T a1,
LObjFltPredicate<T> func) |
default LObjFltPredicate<T> |
negate()
Returns a predicate that represents the logical negation of this predicate.
|
default boolean |
nestingTest(T a1,
float a2)
Function call that handles exceptions by always nesting checked exceptions and propagating the others as is.
|
default boolean |
nonNullTest(T a1,
float a2)
Just to mirror the method: Ensures the result is not null
|
static <T> LObjFltPredicate<T> |
objFltPred(LObjFltPredicate<T> lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
|
default <V1,V2> LBiPredicate<V1,V2> |
objFltPredCompose(LFunction<? super V1,? extends T> before1,
LToFltFunction<? super V2> before2)
Allows to manipulate the domain of the function.
|
static <T> LObjFltPredicate<T> |
objFltPredThrowing(ExF<Throwable> exF) |
static <T> LObjFltPredicate<T> |
objFltPredThrowing(String message,
ExMF<Throwable> exF) |
default LObjFltPredicate<T> |
or(LObjFltPredicate<? super T> other)
Returns a predicate that represents the logical OR of evaluation of this predicate and the argument one.
|
static <T> LObjFltPredicate<T> |
recursive(LFunction<LObjFltPredicate<T>,LObjFltPredicate<T>> selfLambda) |
default LPredicate<T> |
rShrink(LToFltFunction<T> right) |
default LPredicate<T> |
rShrinkc(float a2) |
static <T> LPredicate<T> |
rShrinked(LToFltFunction<T> right,
LObjFltPredicate<T> func) |
static <T> LPredicate<T> |
rShrinkedc(float a2,
LObjFltPredicate<T> func) |
static <T> LObjFltPredicate<T> |
safe()
Safe instance.
|
static <T> LObjFltPredicate<T> |
safe(LObjFltPredicate<T> other)
Safe wrapping.
|
static <T> LSupplier<LObjFltPredicate<T>> |
safeSupplier()
Safe instance supplier.
|
static <T> LSupplier<LObjFltPredicate<T>> |
safeSupplier(LSupplier<LObjFltPredicate<T>> supplier)
Safe supplier.
|
default boolean |
shovingTest(T a1,
float a2)
Function call that handles exceptions by always propagating them as is, even when they are undeclared checked ones.
|
default boolean |
test(T a1,
float a2) |
default boolean |
test(T a1,
float a2,
ExWF<RuntimeException> exF) |
default boolean |
test(T a1,
float a2,
ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
static <T> LObjFltPredicate<T> |
test1st(LPredicate<T> func)
Captures single parameter function into this interface where only 1st parameter will be used.
|
static <T> LObjFltPredicate<T> |
test2nd(LFltPredicate func)
Captures single parameter function into this interface where only 2nd parameter will be used.
|
default boolean |
testThen(T a1,
float a2,
LPredicate<Throwable> handler) |
boolean |
testX(T a1,
float a2)
Implement this, but call test(T a1,float a2)
|
static <T> void |
throwIf(T a1,
float a2,
LObjFltPredicate<T> pred,
ExMF<RuntimeException> factory,
String newMessage,
Object... messageParams) |
static <T> void |
throwIfNot(T a1,
float a2,
LObjFltPredicate<T> pred,
ExMF<RuntimeException> factory,
String newMessage,
Object... messageParams) |
static <T> void |
times(int max_i,
T a1,
float a2,
LObjFltPredicate<T> func)
From-To.
|
default LObjFltPredicate<T> |
trying(ExWF<RuntimeException> exF) |
default LObjFltPredicate<T> |
trying(ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
default LObjFltPredicate<T> |
tryingThen(LPredicate<Throwable> handler) |
static <T> boolean |
tryTest(T a1,
float a2,
LObjFltPredicate<T> func) |
static <T> boolean |
tryTest(T a1,
float a2,
LObjFltPredicate<T> func,
ExWF<RuntimeException> exF) |
static <T> boolean |
tryTest(T a1,
float a2,
LObjFltPredicate<T> func,
ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
static <T> boolean |
tryTestThen(T a1,
float a2,
LObjFltPredicate<T> func,
LPredicate<Throwable> handler) |
default boolean |
tupleTest(LObjFltPair<T> args) |
static <T> LObjFltPredicate<T> |
uncurry(LFunction<T,LFltPredicate> func) |
default LObjFltPredicate |
untyped()
Cast that removes generics.
|
default LObjFltPredicate<T> |
xor(LObjFltPredicate<? super T> 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(T a1, float a2)
boolean testX(T a1, float a2) throws Throwable
Implement this, but call test(T a1,float a2)
Throwabledefault boolean tupleTest(LObjFltPair<T> args)
default boolean handlingTest(T a1, float a2, HandlingInstructions<Throwable,RuntimeException> handling)
Function call that handles exceptions according to the instructions.
default LObjFltPredicate<T> handling(HandlingInstructions<Throwable,RuntimeException> handling)
default boolean test(T a1, float a2, @Nonnull ExWMF<RuntimeException> exF, @Nonnull String newMessage, @Nullable Object... messageParams)
default LObjFltPredicate<T> trying(@Nonnull ExWMF<RuntimeException> exF, @Nonnull String newMessage, @Nullable Object... messageParams)
default boolean test(T a1, float a2, @Nonnull ExWF<RuntimeException> exF)
default LObjFltPredicate<T> trying(@Nonnull ExWF<RuntimeException> exF)
default boolean testThen(T a1, float a2, @Nonnull LPredicate<Throwable> handler)
default LObjFltPredicate<T> tryingThen(@Nonnull LPredicate<Throwable> handler)
default boolean nestingTest(T a1, float a2)
Function call that handles exceptions by always nesting checked exceptions and propagating the others as is.
default boolean shovingTest(T a1, float a2)
Function call that handles exceptions by always propagating them as is, even when they are undeclared checked ones.
static <T> boolean handlingTest(T a1,
float a2,
LObjFltPredicate<T> func,
HandlingInstructions<Throwable,RuntimeException> handling)
static <T> boolean tryTest(T a1,
float a2,
LObjFltPredicate<T> func)
static <T> boolean tryTest(T a1,
float a2,
LObjFltPredicate<T> func,
@Nonnull
ExWMF<RuntimeException> exF,
@Nonnull
String newMessage,
@Nullable
Object... messageParams)
static <T> boolean tryTest(T a1,
float a2,
LObjFltPredicate<T> func,
@Nonnull
ExWF<RuntimeException> exF)
static <T> boolean tryTestThen(T a1,
float a2,
LObjFltPredicate<T> func,
@Nonnull
LPredicate<Throwable> handler)
default boolean failSafeTest(T a1, float a2, @Nonnull LObjFltPredicate<T> failSafe)
static <T> boolean failSafeTest(T a1,
float a2,
LObjFltPredicate<T> func,
@Nonnull
LObjFltPredicate<T> failSafe)
static <T> LObjFltPredicate<T> failSafe(LObjFltPredicate<T> func, @Nonnull LObjFltPredicate<T> failSafe)
static <T> boolean doIf(T a1,
float a2,
@Nonnull
LObjFltPredicate<T> predicate,
@Nonnull
LAction action)
static <T> boolean doIf(T a1,
float a2,
@Nonnull
LObjFltPredicate<T> predicate,
@Nonnull
LObjFltConsumer<? super T> consumer)
default boolean doIf(T a1, float a2, @Nonnull LObjFltConsumer<? super T> consumer)
static <T> void throwIf(T a1,
float a2,
LObjFltPredicate<T> pred,
ExMF<RuntimeException> factory,
@Nonnull
String newMessage,
@Nullable
Object... messageParams)
static <T> void throwIfNot(T a1,
float a2,
LObjFltPredicate<T> pred,
ExMF<RuntimeException> factory,
@Nonnull
String newMessage,
@Nullable
Object... messageParams)
default boolean nonNullTest(T a1, float a2)
Just to mirror the method: Ensures the result is not null
default boolean doApplyAsBoolean(T a1, float a2)
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,
T a2,
float a3,
LBiObjFltConsumer<V,? super T> consumer)
static <T> void fromTo(int min_i,
int max_i,
T a1,
float a2,
LObjFltPredicate<T> func)
From-To. Intended to be used with non-capturing lambda.
static <T> void fromTill(int min_i,
int max_i,
T a1,
float a2,
LObjFltPredicate<T> func)
From-To. Intended to be used with non-capturing lambda.
static <T> void times(int max_i,
T a1,
float a2,
LObjFltPredicate<T> func)
From-To. Intended to be used with non-capturing lambda.
default LFltPredicate lShrink(LFltFunction<T> left)
default LFltPredicate lShrinkc(T a1)
static <T> LFltPredicate lShrinked(LFltFunction<T> left, LObjFltPredicate<T> func)
static <T> LFltPredicate lShrinkedc(T a1, LObjFltPredicate<T> func)
default LPredicate<T> rShrink(LToFltFunction<T> right)
default LPredicate<T> rShrinkc(float a2)
static <T> LPredicate<T> rShrinked(LToFltFunction<T> right, LObjFltPredicate<T> func)
static <T> LPredicate<T> rShrinkedc(float a2, LObjFltPredicate<T> func)
static <T> LObjFltPredicate<T> uncurry(LFunction<T,LFltPredicate> func)
default LObjFltPredicate untyped()
Cast that removes generics.
default <V2> LObjFltPredicate<V2> cast()
Cast that replace generics.
static <V2,T> LObjFltPredicate<V2> cast(LObjFltPredicate<T> function)
Cast that replace generics.
default LBoolSupplier capture(T a1, float a2)
Captures arguments but delays the evaluation.
static <T> LObjFltPredicate<T> constant(boolean r)
Creates function that always returns the same value.
@Nonnull static <T> LObjFltPredicate<T> test1st(@Nonnull LPredicate<T> func)
Captures single parameter function into this interface where only 1st parameter will be used.
@Nonnull static <T> LObjFltPredicate<T> test2nd(@Nonnull LFltPredicate func)
Captures single parameter function into this interface where only 2nd parameter will be used.
@Nonnull static <T> LObjFltPredicate<T> objFltPred(@Nonnull LObjFltPredicate<T> lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
@Nonnull static <T> LObjFltPredicate<T> recursive(@Nonnull LFunction<LObjFltPredicate<T>,LObjFltPredicate<T>> selfLambda)
@Nonnull static <T> LObjFltPredicate<T> objFltPredThrowing(@Nonnull ExF<Throwable> exF)
@Nonnull static <T> LObjFltPredicate<T> objFltPredThrowing(String message, @Nonnull ExMF<Throwable> exF)
@Nonnull static <T> LObjFltPredicate.LFltObjPred<T> fltObjPred(@Nonnull LObjFltPredicate.LFltObjPred<T> lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
static <T> boolean call(T a1,
float a2,
@Nonnull
LObjFltPredicate<T> lambda)
@Nonnull static <T> LObjFltPredicate<T> safe()
Safe instance. That always returns the same value (as alwaysFalse).
@Nonnull static <T> LSupplier<LObjFltPredicate<T>> safeSupplier()
Safe instance supplier. Returns supplier of safe() instance.
@Nonnull static <T> LObjFltPredicate<T> safe(@Nullable LObjFltPredicate<T> other)
Safe wrapping. Either argument function is returned (if it is not null) or safe() instance.
@Nonnull static <T> LSupplier<LObjFltPredicate<T>> safeSupplier(@Nullable LSupplier<LObjFltPredicate<T>> supplier)
Safe supplier. Either argument supplier is returned (if it is not null) or supplier of safe() instance.
@Nonnull default LObjFltPredicate<T> negate()
Returns a predicate that represents the logical negation of this predicate.
java.util.function.Predicate#negate}@Nonnull default LObjFltPredicate<T> and(@Nonnull LObjFltPredicate<? super T> 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 LObjFltPredicate<T> or(@Nonnull LObjFltPredicate<? super T> 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 LObjFltPredicate<T> xor(@Nonnull LObjFltPredicate<? super T> 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 <T> LObjFltPredicate<T> isEqual(T v1, float v2)
Creates predicate that evaluates if an object is equal with the argument one.
java.util.function.Predicate#isEqual()@Nonnull default <V1> LObjFltPredicate<V1> compose(@Nonnull LFunction<? super V1,? extends T> before1, @Nonnull LFltUnaryOperator before2)
Allows to manipulate the domain of the function.
static <V1,T> LObjFltPredicate<V1> composed(@Nonnull LFunction<? super V1,? extends T> before1, @Nonnull LFltUnaryOperator before2, LObjFltPredicate<T> after)
@Nonnull default <V1,V2> LBiPredicate<V1,V2> objFltPredCompose(@Nonnull LFunction<? super V1,? extends T> before1, @Nonnull LToFltFunction<? super V2> before2)
Allows to manipulate the domain of the function.
static <V1,V2,T> LBiPredicate<V1,V2> composed(@Nonnull LFunction<? super V1,? extends T> before1, @Nonnull LToFltFunction<? super V2> before2, LObjFltPredicate<T> after)
@Nonnull default <V> LObjFltFunction<T,V> boolToObjFltFunc(@Nonnull LBoolFunction<? extends V> after)
Combines two functions together in a order.
@Nonnull default LObjFltPredicate<T> boolToObjFltPred(@Nonnull LLogicalOperator after)
Combines two functions together in a order.
static <T> boolean alwaysTrue(T a1,
float a2)
Returns TRUE.
static <T> boolean alwaysFalse(T a1,
float a2)
Returns FALSE.
static <T> boolean alwaysTrue(float a2,
T a1)
Returns TRUE.
static <T> boolean alwaysFalse(float a2,
T a1)
Returns FALSE.
default <C1,C2> void filterForEach(IndexedRead<C1,aType.a<T>> ia1, C1 source1, IndexedRead<C2,aType.aFloat> ia2, C2 source2, LObjFltConsumer<? super T> 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 <C1,I1,C2> void filterIterate(SequentialRead<C1,I1,aType.a<T>> sa1, C1 source1, IndexedRead<C2,aType.aFloat> ia2, C2 source2, LObjFltConsumer<? super T> 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 <C1,C2,I2> void filterIterate(IndexedRead<C1,aType.a<T>> ia1, C1 source1, SequentialRead<C2,I2,aType.aFloat> sa2, C2 source2, LObjFltConsumer<? super T> 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 <C1,I1,C2,I2> void filterIterate(SequentialRead<C1,I1,aType.a<T>> sa1, C1 source1, SequentialRead<C2,I2,aType.aFloat> sa2, C2 source2, LObjFltConsumer<? super T> 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.
Copyright © 2019. All rights reserved.