MCPcopy Index your code
hub / github.com/zaproxy/zaproxy / compareTo

Method compareTo

zap/src/main/java/org/apache/commons/httpclient/URI.java:3707–3715  ·  view source on GitHub ↗

Compare this URI to another object. @param obj the object to be compared. @return 0, if it's same, -1, if failed, first being compared with in the authority component @throws ClassCastException not URI argument

(Object obj)

Source from the content-addressed store, hash-verified

3705 * @throws ClassCastException not URI argument
3706 */
3707 @Override
3708 public int compareTo(Object obj) throws ClassCastException {
3709
3710 URI another = (URI) obj;
3711 if (!equals(_authority, another.getRawAuthority())) {
3712 return -1;
3713 }
3714 return toString().compareTo(another.toString());
3715 }
3716
3717 // ------------------------------------------------------------------ Clone
3718

Callers

nothing calls this directly

Calls 3

equalsMethod · 0.95
getRawAuthorityMethod · 0.95
toStringMethod · 0.95

Tested by

no test coverage detected