Module org.apache.wicket.util
Class UrlExternalFormComparator
java.lang.Object
org.apache.wicket.util.collections.UrlExternalFormComparator
- All Implemented Interfaces:
Serializable,Comparator<URL>
A comparator of URL instances.
Comparing URLs with their implementation of #equals() is
bad because it may cause problems like DNS resolving, or other
slow checks. This comparator uses the external form of an URL
to make a simple comparison of two Strings.
- Since:
- 1.5.6
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
UrlExternalFormComparator
public UrlExternalFormComparator()
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<URL>
-