com.sun.xml.bind.v2.util
public final class QNameMap<V> extends Object
String#intern() intern
ed.
Since: JAXB 2.0
Nested Class Summary | |
---|---|
static class | QNameMap.Entry<V> |
Field Summary | |
---|---|
int | size
The number of key-value mappings contained in this identity hash map. |
Entry<V>[] | table
The table, resized as necessary. |
Constructor Summary | |
---|---|
QNameMap() |
Method Summary | |
---|---|
boolean | containsKey(String nsUri, String localName) |
Set<Entry<V>> | entrySet() |
V | get(String nsUri, String localPart)
Returns the value to which the specified keys are mapped in this QNameMap,
or null if the map contains no mapping for this key.
|
V | get(QName name) |
Entry<V> | getOne()
Returns one random item in the map.
|
boolean | isEmpty()
Returns true if this map is empty. |
Collection<QName> | keySet() |
void | put(String namespaceUri, String localname, V value)
Associates the specified value with the specified keys in this map.
|
void | put(QName name, V value) |
void | put(Name name, V value) |
QNameMap<V> | putAll(QNameMap<? extends V> map)
Copies all of the mappings from the specified map to this map
These mappings will replace any mappings that
this map had for any of the keys currently in the specified map.
|
int | size()
Returns the number of keys-value mappings in this map.
|
String | toString() |
Parameters: nsUri the namespaceUri key whose associated value is to be returned. localPart the localPart key whose associated value is to be returned.
Returns: the value to which this map maps the specified set of keya, or null if the map contains no mapping for this set of keys.
See Also: QNameMap
This method is useful to obtain the value from a map that only contains one element.
Parameters: namespaceUri First key with which the specified value is to be associated. localname Second key with which the specified value is to be associated. value value to be associated with the specified key.
Parameters: map mappings to be stored in this map.
Returns: the number of keys-value mappings in this map.