|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectutil.TimeStampObject
public class TimeStampObject
A time stamp object records the time it was created. It can be used in place of objects, where knowledge about creation time may be vital, like in applications that may terminate an object according to its life time.
| Field Summary | |
|---|---|
private long |
ut
The system time at object creation. |
| Constructor Summary | |
|---|---|
TimeStampObject()
Creates a new timestamp object and records the current time. |
|
| Method Summary | |
|---|---|
Date |
getCreationDate()
Returns the creation time of the object as a date object. |
long |
getCreationTimeStamp()
Returns the creation time of the object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private long ut
| Constructor Detail |
|---|
public TimeStampObject()
| Method Detail |
|---|
public long getCreationTimeStamp()
public Date getCreationDate()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||