|
Oracle UIX API Reference Release 2.1.22.0.0 B12196-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.cabo.share.util.NamespaceMap
Implements a map between a namespace+key and a value. This unsynchronized class is optimized for a small number of namespaces.
Constructor Summary | |
NamespaceMap()
Creates a NamespaceMap, using a default size for the number of values per namespace. |
|
NamespaceMap(int defaultSize)
Creates a NamespaceMap. |
Method Summary | |
void |
clear()
clears all bindings for all namespaces. |
void |
clear(java.lang.String namespace)
clears all keys from a namespace. |
java.lang.Object |
clone()
Returns a clone of the NamespaceMap |
java.lang.Object |
get(java.lang.String namespace,
java.lang.Object key)
Returns the stored object. |
java.util.Enumeration |
getKeysEnumeration(java.lang.String namespace)
Returns an Enumeration over all of the keys for a particular namespace. |
java.util.Enumeration |
getNamespaceEnumeration()
Returns an Enumeration over all the namespaces added to the map. |
java.util.Enumeration |
getValueEnumeration()
Returns an Enumeration over all the values added to the map. |
java.util.Enumeration |
getValueEnumeration(java.lang.String namespace)
Returns an Enumeration over all of the values for a particular namespace. |
void |
put(java.lang.String namespace,
java.lang.Object key,
java.lang.Object value)
associates a value with a namespace and a key |
java.lang.Object |
remove(java.lang.String namespace,
java.lang.Object key)
Removes a key from a namespace. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public NamespaceMap()
public NamespaceMap(int defaultSize)
defaultSize
- the default size of each per-namespace
storage.Method Detail |
public void put(java.lang.String namespace, java.lang.Object key, java.lang.Object value)
namespace
- namespace of the valuekey
- the key to associate the value withvalue
- the value to associate with the key.public java.lang.Object get(java.lang.String namespace, java.lang.Object key)
namespace
- the namespace to search.key
- the key to search the namespace for.public java.lang.Object remove(java.lang.String namespace, java.lang.Object key)
namespace
- the namespace to search.key
- the key to search the namespace for.public void clear(java.lang.String namespace)
namespace
- the namespace to clear.public void clear()
public java.util.Enumeration getNamespaceEnumeration()
public java.util.Enumeration getValueEnumeration()
public java.util.Enumeration getValueEnumeration(java.lang.String namespace)
public java.util.Enumeration getKeysEnumeration(java.lang.String namespace)
public java.lang.Object clone()
clone
in class java.lang.Object
|
Oracle UIX API Reference Release 2.1.22.0.0 B12196-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |