public final class URLKey
extends java.lang.Object
java.util.Collection
 implementations without the performance cost associated with the URL
 implementation of equals() and hashCode().  Specifically,
 the URLKey implementation of equals() and hashCode
 not do InetAddress resolution.| Modifier and Type | Method and Description | 
|---|---|
static java.util.Collection<URLKey> | 
asURLKeys(java.util.Collection<java.net.URL> urls)
Convert a collection of URL into a collection of  
URLKey. | 
static java.util.Collection<java.net.URL> | 
asURLs(java.util.Collection<URLKey> keys)
Convert a collection of  
URLKey into a collection of URL. | 
boolean | 
equals(java.lang.Object o)  | 
static URLKey | 
getInstance(java.net.URL url)
Get a  
URLKey instance for a URL. | 
int | 
hashCode()  | 
URLKey | 
intern()
Interns the underlying URL and returns a URLKey instance for the interned
 URL. 
 | 
java.lang.String | 
toString()  | 
java.net.URL | 
toURL()
Get the URL corresponding to this key. 
 | 
public static URLKey getInstance(java.net.URL url)
URLKey instance for a URL.url - the URLURLKey instancepublic static java.util.Collection<URLKey> asURLKeys(java.util.Collection<java.net.URL> urls)
URLKey.urls - the collection of URLURLKeypublic static java.util.Collection<java.net.URL> asURLs(java.util.Collection<URLKey> keys)
URLKey into a collection of URL.keys - the collection of URLKeypublic java.net.URL toURL()
public URLKey intern()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object