public abstract class DateTerm extends ComparisonTerm
Modifier and Type | Field and Description |
---|---|
protected Date |
date
The date.
|
comparison, EQ, GE, GT, LE, LT, NE
Modifier | Constructor and Description |
---|---|
protected |
DateTerm(int comparison,
Date date)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
match
protected Date date
protected DateTerm(int comparison, Date date)
comparison
- the comparison typedate
- The Date to be compared againstpublic Date getDate()
public int getComparison()
protected boolean match(Date d)
d
- the date in the constructor is compared with this datepublic boolean equals(Object obj)
equals
in class ComparisonTerm
public int hashCode()
hashCode
in class ComparisonTerm
Copyright © 1996-2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.