com.darwinsys.util
Class DateSimple
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
DateSimple
public DateSimple(int year,
int month,
int day)
- Parameters:
year
- month
- day
-
DateSimple
public DateSimple()
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.