java.io.Serializable
public final class SizeTerm extends IntegerComparisonTerm
comparison, EQ, GE, GT, LE, LT, NE
number
Constructor | Description |
---|---|
SizeTerm(int comparison,
int size) |
Constructor.
|
Modifier and Type | Method | 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
© Copyright 2003, 2004 The Free Software Foundation, All rights reserved