Class Criteria.Simple<E,C extends Criteria.Simple<E,C>>

java.lang.Object
org.burningwave.core.Criteria.Simple<E,C>
All Implemented Interfaces:
AutoCloseable, Closeable, Identifiable
Direct Known Subclasses:
FileCriteria, FileSystemItem.Criteria
Enclosing class:
Criteria<E,C extends Criteria<E,C,T>,T extends Criteria.TestContext<E,C>>

public static class Criteria.Simple<E,C extends Criteria.Simple<E,C>> extends Object implements Closeable
  • Field Details

  • Constructor Details

    • Simple

      public Simple()
  • Method Details

    • and

      public C and()
    • or

      public C or()
    • and

      public C and(C criteria)
    • or

      public C or(C criteria)
    • negate

      public C negate()
    • logicOperation

      protected C logicOperation(C leftCriteria, C rightCriteria, Function<Predicate<E>,Function<Predicate<? super E>,Predicate<E>>> binaryOperator, C targetCriteria)
    • allThoseThatMatch

      public C allThoseThatMatch(Predicate<E> predicate)
    • getPredicateWrapper

      protected <V> Predicate<E> getPredicateWrapper(Function<E,V[]> valueSupplier, BiPredicate<V[],Integer> predicate)
    • concat

      protected Predicate<E> concat(Predicate<E> mainPredicate, Predicate<E> otherPredicate)
    • concat

      protected <E, C extends Criteria.Simple<E, C>> Predicate<E> concat(Predicate<E> mainPredicate, Function<Predicate<E>,Predicate<E>> logicalOperator, Predicate<E> otherPredicate)
    • getPredicateOrFalsePredicateIfPredicateIsNull

      public Predicate<E> getPredicateOrFalsePredicateIfPredicateIsNull()
    • getPredicateOrTruePredicateIfPredicateIsNull

      public Predicate<E> getPredicateOrTruePredicateIfPredicateIsNull()
    • testWithFalseResultForNullPredicate

      public boolean testWithFalseResultForNullPredicate(E entity)
    • testWithTrueResultForNullPredicate

      public boolean testWithTrueResultForNullPredicate(E entity)
    • testWithFalseResultForNullEntityOrTrueResultForNullPredicate

      public boolean testWithFalseResultForNullEntityOrTrueResultForNullPredicate(E entity)
    • testWithTrueResultForNullEntityOrTrueResultForNullPredicate

      public boolean testWithTrueResultForNullEntityOrTrueResultForNullPredicate(E entity)
    • testWithFalseResultForNullEntityOrFalseResultForNullPredicate

      public boolean testWithFalseResultForNullEntityOrFalseResultForNullPredicate(E entity)
    • testWithTrueResultForNullEntityOrFalseResultForNullPredicate

      public boolean testWithTrueResultForNullEntityOrFalseResultForNullPredicate(E entity)
    • hasNoPredicate

      public boolean hasNoPredicate()
    • createCopy

      public C createCopy()
    • newInstance

      protected C newInstance()