|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.uka.ipd.consensus.impl.VersionImpl
TODO
Constructor Summary | |
protected |
VersionImpl(Versionable versionable)
|
protected |
VersionImpl(Versionable versionable,
long date)
|
Method Summary | |
boolean |
after(Version ver)
TODO |
boolean |
before(Version ver)
TODO |
int |
compareTo(Object obj)
TODO |
boolean |
equals(Object obj)
TODO |
Date |
getDate()
Returns the timestamp of this version, i.e. when this version was created. |
Versionable |
getVersionable()
TODO |
int |
hashCode()
TODO |
protected void |
inc()
|
String |
toString()
TODO |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
protected VersionImpl(Versionable versionable)
protected VersionImpl(Versionable versionable, long date)
Method Detail |
protected void inc()
public boolean after(Version ver)
after
in interface Version
ver
- the Version to check against
true
if this version's timestamp is newer than the given version's timestampVersion.getDate()
public boolean before(Version ver)
before
in interface Version
ver
- the Version to check against
true
if this version's timestamp is older than the given version's timestampVersion.getDate()
public int compareTo(Object obj)
compareTo
in interface Comparable
public boolean equals(Object obj)
equals
in interface Version
public int hashCode()
public String toString()
public Versionable getVersionable()
getVersionable
in interface Version
null
public Date getDate()
Version
getDate
in interface Version
null
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |