Class DefaultTextRange

  • All Implemented Interfaces:
    TextRange

    public class DefaultTextRange
    extends java.lang.Object
    implements TextRange
    Since:
    5.2
    • Method Detail

      • overlap

        public boolean overlap​(TextRange another)
        Description copied from interface: TextRange
        Test if the current range has some common area with another range. Exemple: say the two ranges are on same line. Range with offsets [1,3] overlaps range with offsets [2,4] but not range with offset [3,5]
        Specified by:
        overlap in interface TextRange
      • toString

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

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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