Class NotQualifier

java.lang.Object
xal.tools.data.NotQualifier
All Implemented Interfaces:
Qualifier

public class NotQualifier extends Object implements Qualifier
Qualifier which negates another qualifier's matching.
  • Constructor Details

    • NotQualifier

      public NotQualifier(Qualifier qualifier)
      Constructor
      Parameters:
      qualifier - The qualifier to negate.
  • Method Details

    • matches

      public boolean matches(Object object)
      Determine if the specified object is not a match to the enclosed qualifier.
      Specified by:
      matches in interface Qualifier
      Parameters:
      object - the object to test for matching
      Returns:
      true if the object does not match the enclosed qualifier's criteria and false if it does match.
    • toString

      public String toString()
      Get a string representation of this instance.
      Overrides:
      toString in class Object
      Returns:
      "!" followed by this instance's associated qualifier.