com.artima.place.info
Class ModificationDate
java.lang.Object
|
+--com.artima.place.info.ModificationDate
- All Implemented Interfaces:
- java.lang.Cloneable, java.io.Serializable
- public class ModificationDate
- extends java.lang.Object
- implements java.lang.Cloneable, java.io.Serializable
An info object that represents a last modified date.
- See Also:
- Serialized Form
Constructor Summary |
ModificationDate(java.util.Date modDate)
Constructs a ModificationDate with passed
last modified Date . |
Method Summary |
java.lang.Object |
clone()
Clones this ModificationDate . |
boolean |
equals(java.lang.Object o)
Compares this ModificationDate to the passed object for
equality. |
java.util.Date |
getModificationDate()
Returns the modification date. |
int |
hashCode()
Returns a hash code for this object. |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
ModificationDate
public ModificationDate(java.util.Date modDate)
- Constructs a
ModificationDate
with passed
last modified Date
.
- Parameters:
modDate
- the last modified date to store in this
ModificationDate
.- Throws:
NullPointerException
- if passed modDate
is
null
.
getModificationDate
public java.util.Date getModificationDate()
- Returns the modification date.
- Returns:
- the last modified date
equals
public boolean equals(java.lang.Object o)
- Compares this
ModificationDate
to the passed object for
equality. To be semantically equal, the class of the passed object
must be ModificationDate
and the passed object's
modification date must be semantically equal to this object's
modification date.
- Overrides:
equals
in class java.lang.Object
- Parameters:
An
- object to compare to this ModificationDate
- Returns:
true
if this ModificationDate
is
semantically equal to the passed ModificationDate
hashCode
public int hashCode()
- Returns a hash code for this object.
- Overrides:
hashCode
in class java.lang.Object
- Returns:
- the hash code
clone
public java.lang.Object clone()
- Clones this
ModificationDate
.
- Overrides:
clone
in class java.lang.Object
- Returns:
- a clone of this object