|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface represents one version of a versionable element.
Versionable
Method Summary | |
boolean |
after(Version ver)
Checks if this version has a timestamp later than the given version. |
boolean |
before(Version ver)
Checks if this version has a timestamp earlier than the given version. |
boolean |
equals(Object obj)
Checks if this and the given object are equal, i.e. if they represent the same version. |
Date |
getDate()
Returns the timestamp of this version, i.e. when this version was created. |
Versionable |
getVersionable()
Returns the versionable element. |
Methods inherited from interface java.lang.Comparable |
compareTo |
Method Detail |
public boolean after(Version ver)
ver
- the Version to check against
true
if this version's timestamp is newer than the given version's timestampgetDate()
public boolean before(Version ver)
ver
- the Version to check against
true
if this version's timestamp is older than the given version's timestampgetDate()
public boolean equals(Object obj)
obj
- the object to check against
true
if both objects are equal, false
otherwiseObject.equals(java.lang.Object)
public Versionable getVersionable()
null
public Date getDate()
null
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |