Interface AlteredContent


  • public interface AlteredContent
    This class models an altered content, by providing the translations of offsets from the original content to the altered content.
    Since:
    2.3M1
    Version:
    $Id: b73b585d064efb8805e48da0b9d578f76db45670 $
    • Method Detail

      • getInitialOffset

        int getInitialOffset​(int i)
        Parameters:
        i - is altered offset to map
        Returns:
        initial offset corresponding to specified altered offset
      • getAlteredOffset

        int getAlteredOffset​(int i)
        Parameters:
        i - is initial offset to map
        Returns:
        altered offset corresponding to specified initial offset
      • getContent

        CharSequence getContent()
        Returns:
        the char sequence representing the altered content
      • getInitialLength

        int getInitialLength()
        Returns:
        initial length of content