Class NumericVersion

java.lang.Object
org.infinispan.container.versioning.NumericVersion
All Implemented Interfaces:
EntryVersion, IncrementableEntryVersion

@ProtoTypeId(8) public class NumericVersion extends Object implements IncrementableEntryVersion
Numeric version
Since:
5.3
Author:
Galder ZamarreƱo
  • Constructor Details

    • NumericVersion

      @ProtoFactory public NumericVersion(long version)
  • Method Details

    • getVersion

      @ProtoField(number=1, defaultValue="-1") 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 interface EntryVersion
      Parameters:
      other - the other version to compare against
      Returns:
      a InequalVersionComparisonResult instance
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object