public class SimpleDate
extends java.lang.Object
| Constructor and Description |
|---|
SimpleDate(int year,
int month,
int day)
Constructs a new simple date.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
int |
getDay()
Gets the calendar day; this should be between 1 and 31.
|
int |
getMonth()
Gets the calendar month number.
|
int |
getYear()
Gets the calendar year.
|
int |
hashCode() |
java.lang.String |
toString() |
public SimpleDate(int year,
int month,
int day)
year - the full year numbermonth - a month number between 1-12day - a day number between 1-31java.lang.IllegalArgumentException - throws if the date is invalid, or the year is outside the
RFC3339 supported rangepublic int getYear()
public int getMonth()
public int getDay()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object