util
Class TimeStampObject

java.lang.Object
  extended by util.TimeStampObject

public class TimeStampObject
extends Object

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

ut

private long ut
The system time at object creation.

Constructor Detail

TimeStampObject

public TimeStampObject()
Creates a new timestamp object and records the current time.

Method Detail

getCreationTimeStamp

public long getCreationTimeStamp()
Returns the creation time of the object.


getCreationDate

public Date getCreationDate()
Returns the creation time of the object as a date object.