Class LongSchemaVersion

  • All Implemented Interfaces:
    SchemaVersion

    public class LongSchemaVersion
    extends java.lang.Object
    implements SchemaVersion
    Implementation of SchemaVersion that uses a long value as representation.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private long value  
    • Constructor Summary

      Constructors 
      Constructor Description
      LongSchemaVersion​(long value)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      int hashCode()  
      boolean isBefore​(SchemaVersion other)
      Returns if this Version happens before the other Version.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • value

        private final long value
    • Constructor Detail

      • LongSchemaVersion

        public LongSchemaVersion​(long value)
    • Method Detail

      • isBefore

        public boolean isBefore​(SchemaVersion other)
        Description copied from interface: SchemaVersion
        Returns if this Version happens before the other Version.
        Specified by:
        isBefore in interface SchemaVersion
        Parameters:
        other - the other Version object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object