public final class SizeTerm extends IntegerComparisonTerm
number
comparison, EQ, GE, GT, LE, LT, NE
Constructor and Description |
---|
SizeTerm(int comparison,
int size)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other) |
boolean |
match(Message msg)
Returns true only if the size of the given message matches the
specified size using the specified operator.
|
getComparison, getNumber, hashCode, match
public SizeTerm(int comparison, int size)
comparison
- the comparison operatorsize
- the sizepublic boolean match(Message msg)
match
in class SearchTerm
public boolean equals(java.lang.Object other)
equals
in class IntegerComparisonTerm