Class SegmentRangeImpl

    • Method Detail

      • getSegmentId

        public long getSegmentId()
        Description copied from interface: SegmentRange
        Returns the segment number of Segment.
        Specified by:
        getSegmentId in interface SegmentRange
        Returns:
        The segment number
      • getStreamName

        public java.lang.String getStreamName()
        Description copied from interface: SegmentRange
        Returns the stream name the segment is associated with.
        Specified by:
        getStreamName in interface SegmentRange
        Returns:
        The stream name.
      • getScope

        public java.lang.String getScope()
        Description copied from interface: SegmentRange
        Returns the scope name of the stream the segment is associated with.
        Specified by:
        getScope in interface SegmentRange
        Returns:
        The scope name.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • 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
      • getStartOffset

        public long getStartOffset()
        Start offset for the segment.
        Specified by:
        getStartOffset in interface SegmentRange
        Returns:
        The start offset.
      • getEndOffset

        public long getEndOffset()
        End offset for the segment.
        Specified by:
        getEndOffset in interface SegmentRange
        Returns:
        The end offset.