Class SizeTerm

All Implemented Interfaces:
Serializable

public final class SizeTerm extends IntegerComparisonTerm
This class implements comparisons for Message sizes.
Author:
Bill Shannon, John Mani
See Also:
  • Constructor Details

    • SizeTerm

      public SizeTerm(int comparison, int size)
      Constructor.
      Parameters:
      comparison - the Comparison type
      size - the size
  • Method Details

    • match

      public boolean match(Message msg)
      The match method.
      Specified by:
      match in class SearchTerm
      Parameters:
      msg - the size comparator is applied to this Message's size
      Returns:
      true if the size is equal, otherwise false
    • equals

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