SizeTermpublic final class SizeTerm extends IntegerComparisonTerm This class implements comparisons for Message sizes. |
Fields Summary |
---|
private static final long | serialVersionUID |
Constructors Summary |
---|
public SizeTerm(int comparison, int size)Constructor.
super(comparison, size);
|
Methods Summary |
---|
public boolean | equals(java.lang.Object obj)Equality comparison.
if (!(obj instanceof SizeTerm))
return false;
return super.equals(obj);
| public boolean | match(javax.mail.Message msg)The match method.
int size;
try {
size = msg.getSize();
} catch (Exception e) {
return false;
}
if (size == -1)
return false;
return super.match(size);
|
|