|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.mail.search.SearchTerm javax.mail.search.ComparisonTerm javax.mail.search.DateTerm
public abstract class DateTerm
This class implements comparisons for Dates
Field Summary | |
---|---|
protected java.util.Date |
date
The date. |
Fields inherited from class javax.mail.search.ComparisonTerm |
---|
comparison, EQ, GE, GT, LE, LT, NE |
Constructor Summary | |
---|---|
protected |
DateTerm(int comparison,
java.util.Date date)
Constructor. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Equality comparison. |
int |
getComparison()
Return the type of comparison. |
java.util.Date |
getDate()
Return the Date to compare with. |
int |
hashCode()
Compute a hashCode for this object. |
protected boolean |
match(java.util.Date d)
The date comparison method. |
Methods inherited from class javax.mail.search.SearchTerm |
---|
match |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.Date date
Constructor Detail |
---|
protected DateTerm(int comparison, java.util.Date date)
comparison
- the comparison typedate
- The Date to be compared againstMethod Detail |
---|
public java.util.Date getDate()
public int getComparison()
protected boolean match(java.util.Date d)
d
- the date in the constructor is compared with this date
public boolean equals(java.lang.Object obj)
equals
in class ComparisonTerm
public int hashCode()
hashCode
in class ComparisonTerm
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2009, 2010, Oracle Corporation and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Generated on 4-June-2010 04:34