public abstract class StringKeyedMapAdapter<V>
extends java.lang.Object
implements java.util.Map<java.lang.String,V>
Constructor and Description |
---|
StringKeyedMapAdapter() |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsKey(java.lang.Object key) |
boolean |
containsValue(java.lang.Object value) |
java.util.Set<java.util.Map.Entry<java.lang.String,V>> |
entrySet() |
V |
get(java.lang.Object key) |
protected abstract V |
getAttribute(java.lang.String key)
Hook method that needs to be implemented by concrete subclasses.
|
protected abstract java.util.Iterator<java.lang.String> |
getAttributeNames()
Hook method that needs to be implemented by concrete subclasses.
|
boolean |
isEmpty() |
java.util.Set<java.lang.String> |
keySet() |
V |
put(java.lang.String key,
V value) |
void |
putAll(java.util.Map<? extends java.lang.String,? extends V> map) |
V |
remove(java.lang.Object key) |
protected abstract void |
removeAttribute(java.lang.String key)
Hook method that needs to be implemented by concrete subclasses.
|
protected abstract void |
setAttribute(java.lang.String key,
V value)
Hook method that needs to be implemented by concrete subclasses.
|
int |
size() |
java.util.Collection<V> |
values() |
public void clear()
clear
in interface java.util.Map<java.lang.String,V>
public boolean containsKey(java.lang.Object key)
containsKey
in interface java.util.Map<java.lang.String,V>
public boolean containsValue(java.lang.Object value)
containsValue
in interface java.util.Map<java.lang.String,V>
public java.util.Set<java.util.Map.Entry<java.lang.String,V>> entrySet()
entrySet
in interface java.util.Map<java.lang.String,V>
public V get(java.lang.Object key)
get
in interface java.util.Map<java.lang.String,V>
public boolean isEmpty()
isEmpty
in interface java.util.Map<java.lang.String,V>
public java.util.Set<java.lang.String> keySet()
keySet
in interface java.util.Map<java.lang.String,V>
public V put(java.lang.String key, V value)
put
in interface java.util.Map<java.lang.String,V>
public void putAll(java.util.Map<? extends java.lang.String,? extends V> map)
putAll
in interface java.util.Map<java.lang.String,V>
public V remove(java.lang.Object key)
remove
in interface java.util.Map<java.lang.String,V>
public int size()
size
in interface java.util.Map<java.lang.String,V>
public java.util.Collection<V> values()
values
in interface java.util.Map<java.lang.String,V>
protected abstract V getAttribute(java.lang.String key)
key
- the key to lookupprotected abstract void setAttribute(java.lang.String key, V value)
key
- the key to associate the value withvalue
- the value to associate with the keyprotected abstract void removeAttribute(java.lang.String key)
key
- the key to removeprotected abstract java.util.Iterator<java.lang.String> getAttributeNames()