Class Negative<T>

java.lang.Object
org.assertj.core.api.Condition<T>
org.assertj.core.condition.Negative<T>
All Implemented Interfaces:
Descriptable<Condition<T>>
Direct Known Subclasses:
DoesNotHave, Not

public abstract class Negative<T> extends Condition<T>
Inverse the condition.
Author:
Nicolas François, Mikhail Mazursky
  • Constructor Details

    • Negative

      protected Negative(Condition<? super T> condition)
  • Method Details

    • matches

      public boolean matches(T value)
      Description copied from class: Condition
      Verifies that the given value satisfies this condition.
      Overrides:
      matches in class Condition<T>
      Parameters:
      value - the value to verify.
      Returns:
      true if the given value satisfies this condition; false otherwise.