|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.xml.ws.util.QNameMap<V>
public final class QNameMap<V>
Map keyed by QName
.
This specialized map allows a look up operation without constructing
a new QName instance, for a performance reason. This Map
assumes
that both namespace URI and local name are intern
ed.
Nested Class Summary | |
---|---|
static class |
QNameMap.Entry<V>
|
Field Summary | |
---|---|
(package private) int |
size
The number of key-value mappings contained in this identity hash map. |
(package private) QNameMap.Entry<V>[] |
table
The table, resized as necessary. |
Constructor Summary | |
---|---|
QNameMap()
|
Method Summary | |
---|---|
boolean |
containsKey(String nsUri,
String localName)
|
Set<QNameMap.Entry<V>> |
entrySet()
|
V |
get(QName name)
|
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. |
QNameMap.Entry<V> |
getOne()
Returns one random item in the map. |
boolean |
isEmpty()
Returns true if this map is empty. |
Collection<QName> |
keySet()
|
void |
put(QName name,
V value)
|
void |
put(String namespaceUri,
String localname,
V value)
Associates the specified value with the specified keys in this map. |
QNameMap<V> |
putAll(Map<QName,? extends V> map)
|
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()
|
Iterable<V> |
values()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
transient QNameMap.Entry<V>[] table
transient int size
Constructor Detail |
---|
public QNameMap()
Method Detail |
---|
public void put(String namespaceUri, String localname, V value)
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.public void put(QName name, V value)
public V get(@NotNull String nsUri, String localPart)
nsUri
- the namespaceUri key whose associated value is to be returned.localPart
- the localPart key whose associated value is to be returned.
put(String,String, Object)
public V get(QName name)
public int size()
public QNameMap<V> putAll(QNameMap<? extends V> map)
map
- mappings to be stored in this map.public QNameMap<V> putAll(Map<QName,? extends V> map)
public QNameMap.Entry<V> getOne()
This method is useful to obtain the value from a map that only contains one element.
public Collection<QName> keySet()
public Iterable<V> values()
public boolean containsKey(@NotNull String nsUri, String localName)
public boolean isEmpty()
public Set<QNameMap.Entry<V>> entrySet()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |