public int compareTo()

in java/io/bazel/rules/closure/Webpath.java [438:470]


  public int compareTo(Webpath other) {
    if (isEmpty()) {
      if (!other.isEmpty()) {
        return -1;
      }
    } else {
      if (other.isEmpty()) {
        return 1;
      }
    }
    if (isAbsolute()) {
      if (!other.isAbsolute()) {
        return 1;
      }
    } else {
      if (other.isAbsolute()) {
        return -1;
      }
    }
    int result = ORDERING.compare(getParts(), other.getParts());
    if (result == 0) {
      if (hasTrailingSeparator()) {
        if (!other.hasTrailingSeparator()) {
          return 1;
        }
      } else {
        if (other.hasTrailingSeparator()) {
          return -1;
        }
      }
    }
    return result;
  }