Class Not<T>

java.lang.Object
org.dmfs.jems2.predicate.Not<T>
All Implemented Interfaces:
Predicate<T>

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

    • Not

      public Not(T delegate)
    • Not

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

    • 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>