Class SizeTerm

  • All Implemented Interfaces:
    java.io.Serializable

    public final class SizeTerm
    extends IntegerComparisonTerm
    This class implements comparisons for Message sizes.
    See Also:
    Serialized Form
    • Constructor Detail

      • SizeTerm

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

      • 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