|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.7.2) E13403-10 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.ide.net.URLKey
public final class URLKey
A key that can be used to store URLs in 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.
Method Summary | |
---|---|
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 colltion 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() Returns a canonical representation of the key. |
java.lang.String |
toString() |
java.net.URL |
toURL() Get the URL corresponding to this key. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
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 URLURLKey
public static java.util.Collection<java.net.URL> asURLs(java.util.Collection<URLKey> keys)
URLKey
into a collection of URL.keys
- the collection of URLKey
public java.net.URL toURL()
public URLKey intern()
==
. Interned keys can also be used as keys in an IdentityHashMap
.public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.7.2) E13403-10 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |