Class SimpleSpan

    • Constructor Detail

      • SimpleSpan

        protected SimpleSpan​(int start,
                             int end)
        Instantiates a new Simple span.
        Parameters:
        start - the start
        end - the end
    • Method Detail

      • end

        public int end()
        Description copied from interface: Span
        The ending offset
        Specified by:
        end in interface Span
        Returns:
        The ending offset (exclusive).
      • hashCode

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

        public int length()
        Description copied from interface: Span
        The length of the span
        Specified by:
        length in interface Span
        Returns:
        The length of the span
      • setEnd

        protected void setEnd​(int end)
        Sets end.
        Parameters:
        end - the end
      • setStart

        protected void setStart​(int start)
        Sets start.
        Parameters:
        start - the start
      • start

        public int start()
        Description copied from interface: Span
        The starting offset
        Specified by:
        start in interface Span
        Returns:
        The start offset (inclusive).