Package org.burningwave
Class Criteria<E,C extends Criteria<E,C,T>,T extends Criteria.TestContext<E,C>>
java.lang.Object
org.burningwave.Criteria<E,C,T>
- Direct Known Subclasses:
MemberCriteria
public class Criteria<E,C extends Criteria<E,C,T>,T extends Criteria.TestContext<E,C>>
extends Object
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classCriteria.Simple<E,C extends Criteria.Simple<E, C>> static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Function<ThrowingBiPredicate<T,E, ? extends Throwable>, ThrowingBiPredicate<T, E, ? extends Throwable>> protected ThrowingBiPredicate<T,E, ? extends Throwable> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallThoseThatMatch(ThrowingBiPredicate<T, E, ? extends Throwable> predicate) allThoseThatMatch(ThrowingPredicate<E, ? extends Throwable> predicate) and()protected <E,C extends Criteria<E, C, T>, T extends Criteria.TestContext<E, C>>
ThrowingBiPredicate<T,E, ? extends Throwable> concat(ThrowingBiPredicate<T, E, ? extends Throwable> mainPredicate, Function<ThrowingBiPredicate<T, E, ? extends Throwable>, ThrowingBiPredicate<T, E, ? extends Throwable>> logicalOperator, ThrowingBiPredicate<T, E, ? extends Throwable> otherPredicate) protected ThrowingBiPredicate<T,E, ? extends Throwable> concat(ThrowingBiPredicate<T, E, ? extends Throwable> mainPredicate, ThrowingBiPredicate<T, E, ? extends Throwable> otherPredicate) protected Tprotected Tprotected TThrowingPredicate<E,? extends Throwable> ThrowingPredicate<E,? extends Throwable> protected <V> ThrowingBiPredicate<T,E, ? extends Throwable> getPredicateWrapper(ThrowingBiFunction<T, E, V[], ? extends Throwable> valueSupplier, ThrowingTriPredicate<T, V[], Integer, ? extends Throwable> predicate) booleanprotected ClogicOperation(C leftCriteria, C rightCriteria, Function<ThrowingBiPredicate<T, E, ? extends Throwable>, Function<ThrowingBiPredicate<? super T, ? super E, ? extends Throwable>, ThrowingBiPredicate<T, E, ? extends Throwable>>> binaryOperator, C targetCriteria) protected Cstatic final <E,C extends Criteria<E, C, T>, T extends Criteria.TestContext<E, C>>
Criteria<E,C, T> of(ThrowingBiPredicate<T, E, ? extends Throwable> predicate) static final <E,C extends Criteria<E, C, T>, T extends Criteria.TestContext<E, C>>
Criteria<E,C, T> of(ThrowingPredicate<E, ? extends Throwable> predicate) or()
-
Field Details
-
logicalOperator
protected Function<ThrowingBiPredicate<T extends Criteria.TestContext<E,C>, logicalOperatorE, ? extends Throwable>, ThrowingBiPredicate<T extends Criteria.TestContext<E, C>, E, ? extends Throwable>> -
predicate
-
-
Constructor Details
-
Criteria
public Criteria()
-
-
Method Details
-
of
public static final <E,C extends Criteria<E, Criteria<E,C, T>, T extends Criteria.TestContext<E, C>> C, ofT> (ThrowingBiPredicate<T, E, ? extends Throwable> predicate) -
of
public static final <E,C extends Criteria<E, Criteria<E,C, T>, T extends Criteria.TestContext<E, C>> C, ofT> (ThrowingPredicate<E, ? extends Throwable> predicate) -
allThoseThatMatch
-
allThoseThatMatch
-
and
-
and
-
createCopy
-
getPredicateOrFalsePredicateIfPredicateIsNull
-
getPredicateOrTruePredicateIfPredicateIsNull
-
hasNoPredicate
public boolean hasNoPredicate() -
or
-
or
-
testWithFalseResultForNullEntityOrFalseResultForNullPredicate
-
testWithFalseResultForNullEntityOrTrueResultForNullPredicate
-
testWithTrueResultForNullEntityOrFalseResultForNullPredicate
-
testWithTrueResultForNullEntityOrTrueResultForNullPredicate
-
concat
protected ThrowingBiPredicate<T,E, concat? extends Throwable> (ThrowingBiPredicate<T, E, ? extends Throwable> mainPredicate, ThrowingBiPredicate<T, E, ? extends Throwable> otherPredicate) -
concat
protected <E,C extends Criteria<E, ThrowingBiPredicate<T,C, T>, T extends Criteria.TestContext<E, C>> E, concat? extends Throwable> (ThrowingBiPredicate<T, E, ? extends Throwable> mainPredicate, Function<ThrowingBiPredicate<T, E, ? extends Throwable>, ThrowingBiPredicate<T, E, ? extends Throwable>> logicalOperator, ThrowingBiPredicate<T, E, ? extends Throwable> otherPredicate) -
createTestContext
-
getContextWithFalsePredicateForNullPredicate
-
getContextWithTruePredicateForNullPredicate
-
getPredicateWrapper
protected <V> ThrowingBiPredicate<T,E, getPredicateWrapper? extends Throwable> (ThrowingBiFunction<T, E, V[], ? extends Throwable> valueSupplier, ThrowingTriPredicate<T, V[], Integer, ? extends Throwable> predicate) -
logicOperation
-
newInstance
-