Class VersionImpl

  • All Implemented Interfaces:
    Version, java.io.Serializable

    public class VersionImpl
    extends java.lang.Object
    implements Version, java.io.Serializable
    Version of a Key in a Table.
    See Also:
    Serialized Form
    • Field Detail

      • NO_SEGMENT_ID

        public static final long NO_SEGMENT_ID
        Denotes the lack of any Segment.
        See Also:
        Constant Field Values
    • Constructor Detail

      • VersionImpl

        @ConstructorProperties({"segmentId","segmentVersion"})
        public VersionImpl​(long segmentId,
                           TableSegmentKeyVersion segmentVersion)
    • Method Detail

      • getSegmentVersion

        public long getSegmentVersion()
        The internal version inside the Table Segment for this Key.
        Returns:
        The Segment Version
      • asImpl

        public VersionImpl asImpl()
        Description copied from interface: Version
        Returns the actual instance. This method prevents other classes from implementing this interface.
        Specified by:
        asImpl in interface Version
        Returns:
        Implementation of the Version interface.
      • toString

        public java.lang.String toString()
        Description copied from interface: Version
        Serializes the Version to a human readable string.
        Specified by:
        toString in interface Version
        Overrides:
        toString in class java.lang.Object
        Returns:
        A string representation of the Version.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

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