org.objectweb.jac.aspects.timestamp
Class Timestamps

java.lang.Object
  extended byorg.objectweb.jac.aspects.timestamp.Timestamps

public class Timestamps
extends Object


Constructor Summary
Timestamps()
           
 
Method Summary
 long getStamp(Object object)
          Gets the time an object was last modified, or 0.
 void touch(Object object)
          Set the stamp of an object to current time
 void touchAll()
          Delete all timestamps
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Timestamps

public Timestamps()
Method Detail

touch

public void touch(Object object)
Set the stamp of an object to current time

See Also:
touch(Object)

getStamp

public long getStamp(Object object)
Gets the time an object was last modified, or 0.

Parameters:
object - the object whose timestamp you request
Returns:
if object is a file, obect.lastModified(), otherwise the stored timestamp for that object, or if 0 no timestamp is stored for it.
See Also:
touch(Object)

touchAll

public void touchAll()
Delete all timestamps