javax.mail.search
类 DateTerm

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

public abstract class DateTerm
extends ComparisonTerm

This class implements comparisons for Dates

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

字段摘要
protected  Date date
          The date.
 
从类 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.

覆盖:
ComparisonTerm 中的 equals

hashCode

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

覆盖:
ComparisonTerm 中的 hashCode


Copyright © 2013. All Rights Reserved.