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