java.lang.Comparable<CacheItemVersion>
public class CacheItemVersion extends java.lang.Object implements java.lang.Comparable<CacheItemVersion>
Constructor | Description |
---|---|
CacheItemVersion() |
Creates an instance of CacheItemVersion class.
|
CacheItemVersion(long version) |
Creates an instance of CacheItemVersion class.
|
Modifier and Type | Method | Description |
---|---|---|
int |
compareTo(CacheItemVersion itemVersion) |
Compare CacheItemVersion with current instance of item version.
|
long |
getVersion() |
Gets the item version
|
void |
setVersion(long version) |
Sets the item version
|
java.lang.String |
toString() |
The string representation of CacheItemVersion class.
|
public CacheItemVersion()
public CacheItemVersion(long version)
version
- version of the cache item.public long getVersion()
public void setVersion(long version)
version
- Item's versionpublic java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(CacheItemVersion itemVersion)
compareTo
in interface java.lang.Comparable<CacheItemVersion>
itemVersion
- item version to be compared.