Class NotTerm

All Implemented Interfaces:
Serializable

public final class NotTerm extends SearchTerm
This class implements the logical NEGATION operator.
See Also:
  • Constructor Details

  • Method Details

    • getTerm

      public SearchTerm getTerm()
      Return the term to negate.
    • match

      public boolean match(Message msg)
      Description copied from class: SearchTerm
      This method applies a specific match criterion to the given message and returns the result.
      Specified by:
      match in class SearchTerm
      Parameters:
      msg - The match criterion is applied on this message
      Returns:
      true, it the match succeeds, false if the match fails
    • equals

      public boolean equals(Object obj)
      Equality comparison.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Compute a hashCode for this object.
      Overrides:
      hashCode in class Object