|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sourceforge.jemm.types.JemmDate
public final class JemmDate
JemmDate is an immutable date class. This allows it to be stored as a valuetype like Integer
| Constructor Summary | |
|---|---|
JemmDate(java.util.Date date)
Create a new JemmDate representing the same date/time as the given java.util.Date. |
|
JemmDate(long timestamp)
Create a new JemmDate given the number of milliseconds since January 1, 1970, 00:00:00 GMT. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
java.util.Date |
getAsDate()
Return this date value as a Date. |
java.sql.Date |
getAsSqlDate()
Return this date value as an sql Date. |
long |
getTime()
Returns the number of milliseconds since January 1, 1970, 00:00:00 GMT represented by this Date object. |
int |
hashCode()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JemmDate(java.util.Date date)
date - The date to initialise from.public JemmDate(long timestamp)
timestamp - the number of milliseconds since January 1, 1970, 00:00:00 GMT of this time.| Method Detail |
|---|
public java.util.Date getAsDate()
public java.sql.Date getAsSqlDate()
public long getTime()
Date.getTime()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||