Class MessageNumberTerm

All Implemented Interfaces:
Serializable

public final class MessageNumberTerm extends IntegerComparisonTerm
This class implements comparisons for Message numbers.
See Also:
  • Constructor Details

    • MessageNumberTerm

      public MessageNumberTerm(int number)
      Constructor.
      Parameters:
      number - the Message number
  • Method Details

    • match

      public boolean match(Message msg)
      The match method.
      Specified by:
      match in class SearchTerm
      Parameters:
      msg - the Message number is matched with this Message
      Returns:
      true if the match succeeds, otherwise false
    • equals

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