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)
| 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 |
nothing calls this directly
no test coverage detected