IntegerComparisonTerm (Java EE 5)

Java EE API


javax.mail.search Class IntegerComparisonTerm

java.lang.Object
  extended by javax.mail.search.SearchTerm
      extended by javax.mail.search.ComparisonTerm
          extended by javax.mail.search.IntegerComparisonTerm
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
MessageNumberTerm, SizeTerm

public abstract class IntegerComparisonTerm
extends ComparisonTerm


此类实现整数比较。
英文文档:

This class implements comparisons for integers.

Author:
Bill Shannon, John Mani
See Also:
Serialized Form

Field Summary
protected  int
 
Fields inherited from class javax.mail.search.ComparisonTerm
 
Constructor Summary
protected
 
Method Summary
 boolean
 int
 int
 int
protected  boolean
 
Methods inherited from class javax.mail.search.SearchTerm
 
Methods inherited from class java.lang.Object
 

Field Detail

英文文档:

number

protected int number
The number.

Constructor Detail

protected IntegerComparisonTerm(int comparison, int number)
英文文档:

IntegerComparisonTerm

protected IntegerComparisonTerm(int comparison,
                                int number)
Method Detail

public int getNumber()
返回要与之比较的数字。
英文文档:

getNumber

public int getNumber()
Return the number to compare with.


public int getComparison()
返回比较类型。
英文文档:

getComparison

public int getComparison()
Return the type of comparison.


protected boolean match(int i)
英文文档:

match

protected boolean match(int i)

public boolean equals(Object obj)
相等性比较。
英文文档:

equals

public boolean equals(Object obj)
Equality comparison.

Overrides:
equals in class ComparisonTerm

public int hashCode()
计算此对象的 hashCode。
英文文档:

hashCode

public int hashCode()
Compute a hashCode for this object.

Overrides:
hashCode in class ComparisonTerm


Submit a bug or feature

Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.

一看就知道只有菜鸟才干这么无知的事啦。

PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!