|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectde.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 Versionver - 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 Versionver - 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 Comparablepublic boolean equals(Object obj)
equals in interface Versionpublic int hashCode()
public String toString()
public Versionable getVersionable()
getVersionable in interface Versionnullpublic Date getDate()
Version
getDate in interface Versionnull
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||