Class Not<T>

  • All Implemented Interfaces:
    Predicate<T>

    public final class Not<T>
    extends java.lang.Object
    implements Predicate<T>
    A Predicate which inverts another Predicate. This is equivalent to the boolean "NOT" operator.
    • Constructor Summary

      Constructors 
      Constructor Description
      Not​(Predicate<? super T> delegate)  
      Not​(T delegate)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean satisfiedBy​(T testedInstance)
      Returns whether the given instance satisfies this predicate.
      • Methods inherited from class java.lang.Object

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

      • Not

        public Not​(T delegate)
      • Not

        public Not​(Predicate<? super T> delegate)
    • Method Detail

      • satisfiedBy

        public boolean satisfiedBy​(T testedInstance)
        Description copied from interface: Predicate
        Returns whether the given instance satisfies this predicate.
        Specified by:
        satisfiedBy in interface Predicate<T>