org.nakedobjects.applib.value
Class TimeStamp
java.lang.Object
org.nakedobjects.applib.value.Magnitude
org.nakedobjects.applib.value.TimeStamp
- All Implemented Interfaces:
- Serializable
public class TimeStamp
- extends Magnitude
Value object representing a date/time value marking a point in time This is a user facing date/time value,
more a marker used to indicate the temporal relationship between two objects.
- See Also:
DateTime,
Serialized Form
|
Constructor Summary |
TimeStamp()
Create a TimeStamp object for storing a timeStamp set to the current time. |
TimeStamp(long time)
|
|
Method Summary |
boolean |
isEqualTo(Magnitude timeStamp)
returns true if the time stamp of this object has the same value as the specified timeStamp |
boolean |
isLessThan(Magnitude timeStamp)
returns true if the timeStamp of this object is earlier than the specified timeStamp |
long |
longValue()
|
String |
toString()
|
TimeStamp
public TimeStamp()
- Create a TimeStamp object for storing a timeStamp set to the current time.
TimeStamp
public TimeStamp(long time)
isEqualTo
public boolean isEqualTo(Magnitude timeStamp)
- returns true if the time stamp of this object has the same value as the specified timeStamp
- Specified by:
isEqualTo in class Magnitude
isLessThan
public boolean isLessThan(Magnitude timeStamp)
- returns true if the timeStamp of this object is earlier than the specified timeStamp
- Specified by:
isLessThan in class Magnitude
longValue
public long longValue()
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.