| 
 | Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.6.0) E13403-07 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectoracle.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 URLKeyinto a collection of URL. | 
|  boolean | equals(java.lang.Object o) | 
| static URLKey | getInstance(java.net.URL url)Get a URLKeyinstance 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 URL
URLKey instancepublic static java.util.Collection<URLKey> asURLKeys(java.util.Collection<java.net.URL> urls)
URLKey.
urls - the collection of URL
URLKeypublic 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.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic 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.6.0) E13403-07 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||