public int compareTo(URI object) {
        return toString().compareTo(object.toString());
    }
Returns an explanation of why this uri is invalid, or null if it is valid
vespajlib/src/main/java/com/yahoo/net/URI.java