com.darwinsys.util
Class DateSimple

java.lang.Object
  extended by com.darwinsys.util.DateSimple

public class DateSimple
extends java.lang.Object

DateSimple represents YYYY-MM-DD without all the overhead and deprecated baggage of java.util.Date. Objects of this type are immutable.


Constructor Summary
DateSimple()
           
DateSimple(int year, int month, int day)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.util.Calendar getCalendar()
           
 int getDay()
           
 int getMonth()
           
 int getYear()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateSimple

public DateSimple(int year,
                  int month,
                  int day)
Parameters:
year -
month -
day -

DateSimple

public DateSimple()
Method Detail

getDay

public int getDay()

getMonth

public int getMonth()

getYear

public int getYear()

getCalendar

public java.util.Calendar getCalendar()

equals

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

hashCode

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


Copyright © 1996-2004 Ian F. Darwin. See license.html for usage license.