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 obj)
Equality comparison.
|
boolean |
match(Message msg)
The match method.
|
getComparison, getNumber, hashCode, match
public MessageNumberTerm(int number)
number
- the Message numberpublic boolean match(Message msg)
match
in class SearchTerm
msg
- the Message number is matched with this Messagepublic boolean equals(java.lang.Object obj)
equals
in class IntegerComparisonTerm