java.io.Serializable
ReceivedDateTerm
, SentDateTerm
public abstract class DateTerm extends ComparisonTerm
Modifier and Type | Field | Description |
---|---|---|
protected java.util.Date |
date |
The date.
|
comparison, EQ, GE, GT, LE, LT, NE
Modifier | Constructor | Description |
---|---|---|
protected |
DateTerm(int comparison,
java.util.Date date) |
Constructor.
|
Modifier and Type | Method | Description |
---|---|---|
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.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
match
protected DateTerm(int comparison, java.util.Date date)
comparison
- the comparison typedate
- The Date to be compared againstpublic java.util.Date getDate()
public int getComparison()
protected boolean match(java.util.Date d)
d
- the date in the constructor is compared with this datepublic boolean equals(java.lang.Object obj)
equals
in class ComparisonTerm
public int hashCode()
hashCode
in class ComparisonTerm
Copyright © 2018 Oracle. All rights reserved.