Class SpanImpl

  • All Implemented Interfaces:
    Span

    public class SpanImpl
    extends java.lang.Object
    implements Span
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int beginIndex  
      private int endIndex  
    • Constructor Summary

      Constructors 
      Constructor Description
      SpanImpl​(int beginIndex, int endIndex)  
    • Field Detail

      • beginIndex

        private final int beginIndex
      • endIndex

        private final int endIndex
    • Constructor Detail

      • SpanImpl

        public SpanImpl​(int beginIndex,
                        int endIndex)
    • Method Detail

      • getBeginIndex

        public int getBeginIndex()
        Specified by:
        getBeginIndex in interface Span
        Returns:
        begin index (inclusive) in the original input that this link starts at
      • getEndIndex

        public int getEndIndex()
        Specified by:
        getEndIndex in interface Span
        Returns:
        end index (exclusive) in the original input that this link ends at; in other words, index of first character after link
      • toString

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