SizeTerm (Java EE 5 SDK)

Java

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


javax.mail.search Class SizeTerm

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

public final class SizeTerm
extends IntegerComparisonTerm

This class implements comparisons for Message sizes.

作者:
Bill Shannon, John Mani
另请参见:
Serialized Form

字段摘要
 
Fields inherited from class javax.mail.search.IntegerComparisonTerm
number
 
Fields inherited from class 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.

规范说明:
match in class SearchTerm
参数:
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.

重写:
equals in class IntegerComparisonTerm

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


提交错误或意见

版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。深圳电信培训中心.徐海蛟老师教学参考.