Package com.xmlmind.util
Class URLUtil.URLComparator
- java.lang.Object
-
- com.xmlmind.util.URLUtil.URLComparator
-
- All Implemented Interfaces:
Comparator<URL>
- Enclosing class:
- URLUtil
public static final class URLUtil.URLComparator extends Object implements Comparator<URL>
Compares two URLs by theirexternal forms
.
-
-
Constructor Summary
Constructors Constructor Description URLComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(URL u1, URL u2)
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Method Detail
-
compare
public int compare(URL u1, URL u2)
- Specified by:
compare
in interfaceComparator<URL>
-
-