public class Date extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<Date>
Constructor and Description |
---|
Date() |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Date pDate) |
boolean |
equals(java.lang.Object pOther) |
int |
getDay()
Returns the dates day.
|
int |
getMonth()
Returns the dates month.
|
int |
getYear()
Returns the dates year.
|
int |
hashCode() |
boolean |
isAfter(Date pDate)
Returns, whether this Date is after the given date.
|
boolean |
isBefore(Date pDate)
Returns, whether this Date is before the given date.
|
void |
setDay(int pDay)
Sets the dates day.
|
void |
setMonth(int pMonth)
Sets the dates month.
|
void |
setYear(int pYear)
Sets the dates year.
|
java.lang.String |
toString() |
public int getYear()
public void setYear(int pYear)
pYear
- the dates year.public int getMonth()
public void setMonth(int pMonth)
pMonth
- the dates month.public int getDay()
public void setDay(int pDay)
pDay
- the dates day.public java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(Date pDate)
compareTo
in interface java.lang.Comparable<Date>
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object pOther)
equals
in class java.lang.Object
public boolean isAfter(Date pDate)
pDate
- the date.public boolean isBefore(Date pDate)
pDate
- the date.