|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.cache.optimistic.DefaultDataVersion
@Immutable @Deprecated public class DefaultDataVersion
The default implementation of a DataVersion, uses a long
to
compare versions.
This class is immutable.
Option.setDataVersion(DataVersion)
API, as it WILL
break things.
Field Summary | |
---|---|
static DataVersion |
ZERO
Deprecated. Version zero. |
Constructor Summary | |
---|---|
DefaultDataVersion()
Deprecated. Constructs with version 0. |
|
DefaultDataVersion(long version)
Deprecated. Constructs with a version number. |
Method Summary | |
---|---|
boolean |
equals(Object other)
Deprecated. |
long |
getRawVersion()
Deprecated. |
int |
hashCode()
Deprecated. |
DataVersion |
increment()
Deprecated. Returns a new DataVersion with a newer version number. |
boolean |
newerThan(DataVersion other)
Deprecated. Returns true if this is a newer version than other . |
String |
toString()
Deprecated. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final DataVersion ZERO
Constructor Detail |
---|
public DefaultDataVersion()
public DefaultDataVersion(long version)
Method Detail |
---|
public DataVersion increment()
public boolean newerThan(DataVersion other)
DataVersion
other
. There is no guarantee that the DataVersion passed
in is of the same implementation as the current instance. The implementation will have to check for this (if necessary)
and (if necessary) throw a DataVersioningException
.
newerThan
in interface DataVersion
public String toString()
toString
in class Object
public boolean equals(Object other)
equals
in class Object
public int hashCode()
hashCode
in class Object
public long getRawVersion()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |