public final class MessageNumberTerm extends IntegerComparisonTerm
number
comparison, EQ, GE, GT, LE, LT, NE
Constructor and Description |
---|
MessageNumberTerm(int number)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other) |
boolean |
match(Message msg)
Returns true if the message number of the given message is equal to the
message number specified in this term.
|
getComparison, getNumber, hashCode, match
public MessageNumberTerm(int number)
number
- the message number to matchpublic boolean match(Message msg)
match
in class SearchTerm
public boolean equals(java.lang.Object other)
equals
in class IntegerComparisonTerm