javax.mail.search
类 SizeTerm

java.lang.Object
  继承者 javax.mail.search.SearchTerm
      继承者 javax.mail.search.ComparisonTerm
          继承者 javax.mail.search.IntegerComparisonTerm
              继承者 javax.mail.search.SizeTerm
所有已实现的接口:
Serializable

public final class SizeTerm
extends IntegerComparisonTerm

This class implements comparisons for Message sizes.

作者:
Bill Shannon, John Mani
另请参见:
序列化表格

字段摘要
 
从类 javax.mail.search.IntegerComparisonTerm 继承的字段
number
 
从类 javax.mail.search.ComparisonTerm 继承的字段
comparison, EQ, GE, GT, LE, LT, NE
 
构造方法摘要
SizeTerm(int comparison, int size)
          Constructor.
 
方法摘要
 boolean equals(Object obj)
          Equality comparison.
 boolean match(Message msg)
          The match method.
 
从类 javax.mail.search.IntegerComparisonTerm 继承的方法
getComparison, getNumber, hashCode, match
 
从类 java.lang.Object 继承的方法
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

SizeTerm

public SizeTerm(int comparison,
                int size)
Constructor.

参数:
comparison - the Comparison type
size - the size
方法详细信息

match

public boolean match(Message msg)
The match method.

指定者:
SearchTerm 中的 match
参数:
msg - the size comparator is applied to this Message's size
返回:
true if the size is equal, otherwise false

equals

public boolean equals(Object obj)
Equality comparison.

覆盖:
IntegerComparisonTerm 中的 equals


Copyright © 2013. All Rights Reserved.