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
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncompareTo(EntryVersion other) Compares the given version against the current instance.booleanlonginthashCode()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:EntryVersionCompares the given version against the current instance.- Specified by:
compareToin interfaceEntryVersion- Parameters:
other- the other version to compare against- Returns:
- a InequalVersionComparisonResult instance
-
equals
-
hashCode
public int hashCode() -
toString
-