| Package | Description |
|---|---|
| eu.lunisolar.magma.func.function.from | |
| eu.lunisolar.magma.func.predicate |
| Modifier and Type | Method and Description |
|---|---|
default LObjBoolPredicate<T> |
LObjBoolFunction.thenToBool(LPredicate<? super R> after)
Combines two functions together in a order.
|
| Modifier and Type | Interface and Description |
|---|---|
static interface |
LObjBoolPredicate.LBoolObjPred<T>
Permutation of LObjBoolPredicate for method references.
|
| Modifier and Type | Class and Description |
|---|---|
static class |
LObjBoolPredicate.LObjBoolPredicateSingle<T> |
| Modifier and Type | Method and Description |
|---|---|
default LObjBoolPredicate<T> |
LObjBoolPredicate.and(LObjBoolPredicate<? super T> other)
Returns a predicate that represents the logical AND of evaluation of this predicate and the argument one.
|
default LObjBoolPredicate<T> |
LObjBoolPredicate.boolToObjBoolPred(LLogicalOperator after)
Combines two functions together in a order.
|
default <V2> LObjBoolPredicate<V2> |
LObjBoolPredicate.cast()
Cast that replace generics.
|
static <V2,T> LObjBoolPredicate<V2> |
LObjBoolPredicate.cast(LObjBoolPredicate<T> function)
Cast that replace generics.
|
default <V1> LObjBoolPredicate<V1> |
LObjBoolPredicate.compose(LFunction<? super V1,? extends T> before1,
LLogicalOperator before2)
Allows to manipulate the domain of the function.
|
static <V1,T> LObjBoolPredicate<V1> |
LObjBoolPredicate.composed(LFunction<? super V1,? extends T> before1,
LLogicalOperator before2,
LObjBoolPredicate<T> after) |
static <T> LObjBoolPredicate<T> |
LObjBoolPredicate.constant(boolean r)
Creates function that always returns the same value.
|
static <T> LObjBoolPredicate<T> |
LObjBoolPredicate.failSafe(LObjBoolPredicate<T> func,
LObjBoolPredicate<T> failSafe) |
default LObjBoolPredicate<T> |
LObjBoolPredicate.handling(HandlingInstructions<Throwable,RuntimeException> handling) |
static <T> LObjBoolPredicate<T> |
LObjBoolPredicate.isEqual(T v1,
boolean v2)
Creates predicate that evaluates if an object is equal with the argument one.
|
default LObjBoolPredicate<T2> |
LBiObjBoolPredicate.lShrink(LObjBoolFunction<T2,T1> left) |
default LObjBoolPredicate<T2> |
LBiObjBoolPredicate.lShrinkc(T1 a1) |
static <T2,T1> LObjBoolPredicate<T2> |
LBiObjBoolPredicate.lShrinked(LObjBoolFunction<T2,T1> left,
LBiObjBoolPredicate<T1,T2> func) |
static <T2,T1> LObjBoolPredicate<T2> |
LBiObjBoolPredicate.lShrinkedc(T1 a1,
LBiObjBoolPredicate<T1,T2> func) |
default LObjBoolPredicate<T> |
LObjBoolPredicate.negate()
Returns a predicate that represents the logical negation of this predicate.
|
static <T> LObjBoolPredicate<T> |
LObjBoolPredicate.objBoolPred(LObjBoolPredicate<T> lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
|
static <T> LObjBoolPredicate<T> |
LObjBoolPredicate.objBoolPredThrowing(ExF<Throwable> exF) |
static <T> LObjBoolPredicate<T> |
LObjBoolPredicate.objBoolPredThrowing(String message,
ExMF<Throwable> exF) |
default LObjBoolPredicate<T> |
LObjBoolPredicate.or(LObjBoolPredicate<? super T> other)
Returns a predicate that represents the logical OR of evaluation of this predicate and the argument one.
|
static <T> LObjBoolPredicate<T> |
LObjBoolPredicate.recursive(LFunction<LObjBoolPredicate<T>,LObjBoolPredicate<T>> selfLambda) |
static <T> LObjBoolPredicate<T> |
LObjBoolPredicate.safe()
Safe instance.
|
static <T> LObjBoolPredicate<T> |
LObjBoolPredicate.safe(LObjBoolPredicate<T> other)
Safe wrapping.
|
static <T> LObjBoolPredicate<T> |
LObjBoolPredicate.test1st(LPredicate<T> func)
Captures single parameter function into this interface where only 1st parameter will be used.
|
static <T> LObjBoolPredicate<T> |
LObjBoolPredicate.test2nd(LLogicalOperator func)
Captures single parameter function into this interface where only 2nd parameter will be used.
|
default LObjBoolPredicate<T> |
LObjBoolPredicate.trying(ExWF<RuntimeException> exF) |
default LObjBoolPredicate<T> |
LObjBoolPredicate.trying(ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
default LObjBoolPredicate<T> |
LObjBoolPredicate.tryingThen(LPredicate<Throwable> handler) |
static <T> LObjBoolPredicate<T> |
LObjBoolPredicate.uncurry(LFunction<T,LLogicalOperator> func) |
default LObjBoolPredicate |
LObjBoolPredicate.untyped()
Cast that removes generics.
|
LObjBoolPredicate<T> |
LObjBoolPredicate.LObjBoolPredicateSingle.value() |
default LObjBoolPredicate<T> |
LObjBoolPredicate.xor(LObjBoolPredicate<? super T> other)
Returns a predicate that represents the logical XOR of evaluation of this predicate and the argument one.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> LSupplier<LObjBoolPredicate<T>> |
LObjBoolPredicate.safeSupplier()
Safe instance supplier.
|
static <T> LSupplier<LObjBoolPredicate<T>> |
LObjBoolPredicate.safeSupplier(LSupplier<LObjBoolPredicate<T>> supplier)
Safe supplier.
|
| Modifier and Type | Method and Description |
|---|---|
default LObjBoolPredicate<T> |
LObjBoolPredicate.and(LObjBoolPredicate<? super T> other)
Returns a predicate that represents the logical AND of evaluation of this predicate and the argument one.
|
static <T> boolean |
LObjBoolPredicate.call(T a1,
boolean a2,
LObjBoolPredicate<T> lambda) |
static <V2,T> LObjBoolPredicate<V2> |
LObjBoolPredicate.cast(LObjBoolPredicate<T> function)
Cast that replace generics.
|
static <V1,T> LObjBoolPredicate<V1> |
LObjBoolPredicate.composed(LFunction<? super V1,? extends T> before1,
LLogicalOperator before2,
LObjBoolPredicate<T> after) |
static <V1,V2,T> LBiPredicate<V1,V2> |
LObjBoolPredicate.composed(LFunction<? super V1,? extends T> before1,
LPredicate<? super V2> before2,
LObjBoolPredicate<T> after) |
static <T> boolean |
LObjBoolPredicate.doIf(T a1,
boolean a2,
LObjBoolPredicate<T> predicate,
LAction action) |
static <T> boolean |
LObjBoolPredicate.doIf(T a1,
boolean a2,
LObjBoolPredicate<T> predicate,
LObjBoolConsumer<? super T> consumer) |
static <T> LObjBoolPredicate<T> |
LObjBoolPredicate.failSafe(LObjBoolPredicate<T> func,
LObjBoolPredicate<T> failSafe) |
static <T> LObjBoolPredicate<T> |
LObjBoolPredicate.failSafe(LObjBoolPredicate<T> func,
LObjBoolPredicate<T> failSafe) |
default boolean |
LObjBoolPredicate.failSafeTest(T a1,
boolean a2,
LObjBoolPredicate<T> failSafe) |
static <T> boolean |
LObjBoolPredicate.failSafeTest(T a1,
boolean a2,
LObjBoolPredicate<T> func,
LObjBoolPredicate<T> failSafe) |
static <T> boolean |
LObjBoolPredicate.failSafeTest(T a1,
boolean a2,
LObjBoolPredicate<T> func,
LObjBoolPredicate<T> failSafe) |
static <T> void |
LObjBoolPredicate.fromTill(int min_i,
int max_i,
T a1,
boolean a2,
LObjBoolPredicate<T> func)
From-To.
|
static <T> void |
LObjBoolPredicate.fromTo(int min_i,
int max_i,
T a1,
boolean a2,
LObjBoolPredicate<T> func)
From-To.
|
static <T> boolean |
LObjBoolPredicate.handlingTest(T a1,
boolean a2,
LObjBoolPredicate<T> func,
HandlingInstructions<Throwable,RuntimeException> handling) |
static <T> LLogicalOperator |
LObjBoolPredicate.lShrinked(LBoolFunction<T> left,
LObjBoolPredicate<T> func) |
static <T> LLogicalOperator |
LObjBoolPredicate.lShrinkedc(T a1,
LObjBoolPredicate<T> func) |
static <T> LObjBoolPredicate<T> |
LObjBoolPredicate.objBoolPred(LObjBoolPredicate<T> lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
|
default LObjBoolPredicate<T> |
LObjBoolPredicate.or(LObjBoolPredicate<? super T> other)
Returns a predicate that represents the logical OR of evaluation of this predicate and the argument one.
|
static <T> LPredicate<T> |
LObjBoolPredicate.rShrinked(LPredicate<T> right,
LObjBoolPredicate<T> func) |
static <T> LPredicate<T> |
LObjBoolPredicate.rShrinkedc(boolean a2,
LObjBoolPredicate<T> func) |
static <T> LObjBoolPredicate<T> |
LObjBoolPredicate.safe(LObjBoolPredicate<T> other)
Safe wrapping.
|
static <T> void |
LObjBoolPredicate.throwIf(T a1,
boolean a2,
LObjBoolPredicate<T> pred,
ExMF<RuntimeException> factory,
String newMessage,
Object... messageParams) |
static <T> void |
LObjBoolPredicate.throwIfNot(T a1,
boolean a2,
LObjBoolPredicate<T> pred,
ExMF<RuntimeException> factory,
String newMessage,
Object... messageParams) |
static <T> void |
LObjBoolPredicate.times(int max_i,
T a1,
boolean a2,
LObjBoolPredicate<T> func)
From-To.
|
static <T> boolean |
LObjBoolPredicate.tryTest(T a1,
boolean a2,
LObjBoolPredicate<T> func) |
static <T> boolean |
LObjBoolPredicate.tryTest(T a1,
boolean a2,
LObjBoolPredicate<T> func,
ExWF<RuntimeException> exF) |
static <T> boolean |
LObjBoolPredicate.tryTest(T a1,
boolean a2,
LObjBoolPredicate<T> func,
ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
static <T> boolean |
LObjBoolPredicate.tryTestThen(T a1,
boolean a2,
LObjBoolPredicate<T> func,
LPredicate<Throwable> handler) |
default LObjBoolPredicate<T> |
LObjBoolPredicate.xor(LObjBoolPredicate<? super T> other)
Returns a predicate that represents the logical XOR of evaluation of this predicate and the argument one.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> LObjBoolPredicate<T> |
LObjBoolPredicate.recursive(LFunction<LObjBoolPredicate<T>,LObjBoolPredicate<T>> selfLambda) |
static <T> LObjBoolPredicate<T> |
LObjBoolPredicate.recursive(LFunction<LObjBoolPredicate<T>,LObjBoolPredicate<T>> selfLambda) |
static <T> LSupplier<LObjBoolPredicate<T>> |
LObjBoolPredicate.safeSupplier(LSupplier<LObjBoolPredicate<T>> supplier)
Safe supplier.
|
Copyright © 2019. All rights reserved.