Class Operation<T>

  • Type Parameters:
    T - the parameter class of the predicate(s)
    Direct Known Subclasses:
    Operation.BinaryOperation

    public abstract class Operation<T>
    extends java.lang.Object
    A logical operation to apply to one or more predicates.
    See Also:
    BasicFilterParser
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Operation.BinaryOperation<T>
      A logical operation that combines 2 predicates.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected Operation​(Operator operator)  
    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> Operation<T> and​(java.util.function.Predicate<T> leftOperand)  
      abstract java.util.function.Predicate<T> apply​(java.util.function.Predicate<T> operand)  
      static <T> Operation<T> group()  
      static <T> Operation<T> not()  
      static <T> Operation<T> or​(java.util.function.Predicate<T> leftOperand)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • operator

        public final Operator operator
    • Constructor Detail

      • Operation

        protected Operation​(Operator operator)
    • Method Detail

      • apply

        public abstract java.util.function.Predicate<T> apply​(java.util.function.Predicate<T> operand)
      • and

        public static <T> Operation<T> and​(java.util.function.Predicate<T> leftOperand)
      • or

        public static <T> Operation<T> or​(java.util.function.Predicate<T> leftOperand)
      • not

        public static <T> Operation<T> not()
      • group

        public static <T> Operation<T> group()