DateTerm (Java EE 5 SDK)

Java

Java EE 5 SDK

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


javax.mail.search Class DateTerm

java.lang.Object
  extended by javax.mail.search.SearchTerm
      extended by javax.mail.search.ComparisonTerm
          extended by javax.mail.search.DateTerm
所有已实现的接口:
Serializable
直接已知子类:
ReceivedDateTerm, SentDateTerm

public abstract class DateTerm
extends ComparisonTerm

This class implements comparisons for Dates

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

字段摘要
protected  Date date
          The date.
 
Fields inherited from class javax.mail.search.ComparisonTerm
comparison, EQ, GE, GT, LE, LT, NE
 
构造器摘要
protected DateTerm(int comparison, Date date)
          Constructor.
 
方法摘要
 boolean equals(Object obj)
          Equality comparison.
 int getComparison()
          Return the type of comparison.
 Date getDate()
          Return the Date to compare with.
 int hashCode()
          Compute a hashCode for this object.
protected  boolean match(Date d)
          The date comparison method.
 
类方法继承 javax.mail.search.SearchTerm
match
 
类方法继承 java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

date

protected Date date
The date.

构造器详细信息

DateTerm

protected DateTerm(int comparison,
                   Date date)
Constructor.

参数:
comparison - the comparison type
date - The Date to be compared against

方法详细信息

getDate

public Date getDate()
Return the Date to compare with.


getComparison

public int getComparison()
Return the type of comparison.


match

protected boolean match(Date d)
The date comparison method.

参数:
d - the date in the constructor is compared with this date
返回:
true if the dates match, otherwise false

equals

public boolean equals(Object obj)
Equality comparison.

重写:
equals in class ComparisonTerm

hashCode

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

重写:
hashCode in class ComparisonTerm

Java EE 5 SDK

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


提交错误或意见

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