Class TextUpdate<O>


  • public class TextUpdate<O>
    extends Object
    • Field Detail

      • offset

        protected final int offset
        The offset in the input text of the region to replace.
      • length

        protected final int length
        The length of the input text region to replace. May be 0 to insert something.
      • function

        protected final IFunction1<? super CharSequence,​? extends O> function
        A function from the contents of the region defined by getOffset() and getLength() to the value to replace it with. Depending on the consumer a null or "" return value can be used to delete text.
    • Method Detail

      • getOffset

        public int getOffset()
        The offset in the input text of the region to replace.
        Returns:
        The offset in the input text of the region to replace.
      • getLength

        public int getLength()
        The length of the input text region to replace. May be 0 to insert something.
        Returns:
        The length of the input text region to replace.
      • getFunction

        public IFunction1<? super CharSequence,​? extends O> getFunction()
        A function from the contents of the region defined by getOffset() and getLength() to the value to replace it with. Depending on the consumer a null or "" return value can be used to delete text.
        Returns:
        A function from the contents of this region to the value to replace it with.
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object