Class NumericVersion
- java.lang.Object
-
- org.infinispan.container.versioning.NumericVersion
-
- All Implemented Interfaces:
EntryVersion
,IncrementableEntryVersion
public class NumericVersion extends Object implements IncrementableEntryVersion
Numeric version- Since:
- 5.3
- Author:
- Galder ZamarreƱo
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NumericVersion.Externalizer
-
Constructor Summary
Constructors Constructor Description NumericVersion(long version)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InequalVersionComparisonResult
compareTo(EntryVersion other)
Compares the given version against the current instance.boolean
equals(Object o)
long
getVersion()
int
hashCode()
String
toString()
-
-
-
Method Detail
-
getVersion
public long getVersion()
-
compareTo
public InequalVersionComparisonResult compareTo(EntryVersion other)
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
-
-