public class DateValueImpl extends java.lang.Object implements DateValue
| Constructor and Description |
|---|
DateValueImpl(int year,
int month,
int day) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(DateValue other) |
int |
day()
The Gregorian day of the month, in the range 1-31.
|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
int |
month()
The Gregorian month, in the range 1-12.
|
java.lang.String |
toString() |
int |
year()
The Gregorian year, for example 2004.
|
public int year()
DateValuepublic int month()
DateValuepublic int day()
DateValuepublic java.lang.String toString()
toString in class java.lang.Objectpublic final int compareTo(DateValue other)
compareTo in interface java.lang.Comparable<DateValue>public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object