public int compareTo()

in java/src/main/java/com/twitter/twittertext/Range.java [34:46]


  public int compareTo(@Nonnull Range other) {
    if (this.start < other.start) {
      return -1;
    } else if (this.start == other.start) {
      if (this.end < other.end) {
        return -1;
      } else {
        return this.end == other.end ? 0 : 1;
      }
    } else {
      return 1;
    }
  }