Class InsertReplaceEdit


  • public class InsertReplaceEdit
    extends java.lang.Object
    A special text edit to provide an insert and a replace operation.

    Since 3.16.0

    • Constructor Detail

      • InsertReplaceEdit

        public InsertReplaceEdit()
      • InsertReplaceEdit

        public InsertReplaceEdit​(java.lang.String newText,
                                 Range insert,
                                 Range replace)
    • Method Detail

      • getNewText

        public java.lang.String getNewText()
        The string to be inserted.
      • setNewText

        public void setNewText​(java.lang.String newText)
        The string to be inserted.
      • getInsert

        public Range getInsert()
        The range if the insert is requested
      • setInsert

        public void setInsert​(Range insert)
        The range if the insert is requested
      • getReplace

        public Range getReplace()
        The range if the replace is requested.
      • setReplace

        public void setReplace​(Range replace)
        The range if the replace is requested.
      • 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