class TextPointerImpl implements TextPointer {

  @Override
  public int compareTo(TextPointer other) {
    int lineCompare = Integer.compare(this.line(), other.line());
    if (lineCompare != 0) {
      return lineCompare;
    }
    return Integer.compare(this.lineOffset(), other.lineOffset());
  }

  public  TextPointerImpl(int line, int lineOffset);

}