Class NumericVersion
java.lang.Object
org.infinispan.container.versioning.NumericVersion
- All Implemented Interfaces:
EntryVersion
,IncrementableEntryVersion
Numeric version
- Since:
- 5.3
- Author:
- Galder ZamarreƱo
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncompareTo
(EntryVersion other) Compares the given version against the current instance.boolean
long
int
hashCode()
toString()
-
Constructor Details
-
NumericVersion
@ProtoFactory public NumericVersion(long version)
-
-
Method Details
-
getVersion
@ProtoField(number=1, defaultValue="-1") public long getVersion() -
compareTo
Description copied from interface:EntryVersion
Compares the given version against the current instance.- Specified by:
compareTo
in interfaceEntryVersion
- Parameters:
other
- the other version to compare against- Returns:
- a InequalVersionComparisonResult instance
-
equals
-
hashCode
public int hashCode() -
toString
-