Class TextSpan

  • Direct Known Subclasses:
    TextChange

    public class TextSpan
    extends java.lang.Object
    Encapsulates a span of text, with a start offset and length.
    Author:
    Chris Jennings
    • Field Summary

      Fields 
      Modifier and Type Field Description
      int length
      The length of the span.
      int start
      The start offset from the beginning of the text.
    • Constructor Summary

      Constructors 
      Constructor Description
      TextSpan​(int start, int length)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • start

        public int start
        The start offset from the beginning of the text.
      • length

        public int length
        The length of the span.
    • Constructor Detail

      • TextSpan

        public TextSpan​(int start,
                        int length)
    • Method Detail

      • toString

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