com.softwareag.centrasite.appl.framework.data
Class Date

java.lang.Object
  extended by com.softwareag.centrasite.appl.framework.data.Date
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Date>

public class Date
extends java.lang.Object
implements java.io.Serializable, java.lang.Comparable<Date>

Dates are expressed as instances of this class.

See Also:
Serialized Form

Constructor Summary
Date()
           
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Date

public Date()
Method Detail

getYear

public int getYear()
Returns the dates year.


setYear

public void setYear(int pYear)
Sets the dates year.


getMonth

public int getMonth()
Returns the dates month.


setMonth

public void setMonth(int pMonth)
Sets the dates month.


getDay

public int getDay()
Returns the dates day.


setDay

public void setDay(int pDay)
Sets the dates day.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

compareTo

public int compareTo(Date pDate)
Specified by:
compareTo in interface java.lang.Comparable<Date>

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object pOther)
Overrides:
equals in class java.lang.Object

isAfter

public boolean isAfter(Date pDate)
Returns, whether this Date is after the given date.


isBefore

public boolean isBefore(Date pDate)
Returns, whether this Date is before the given date.