private abstract static class ImplicitObjectELResolver.EnumeratedMap<K,V>
extends java.lang.Object
implements java.util.Map<K,V>
This is a Map implementation driven by a data source that only provides an enumeration of keys and a getValue(key) method. This class must be subclassed to implement those methods.
Some of the methods may incur a performance penalty that involves enumerating the entire data source. In these cases, the Map will try to save the results of that enumeration, but only if the underlying data source is immutable.
Modifier and Type | Field and Description |
---|---|
(package private) java.util.Map<K,V> |
mMap |
Modifier | Constructor and Description |
---|---|
private |
EnumeratedMap() |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsKey(java.lang.Object pKey) |
boolean |
containsValue(java.lang.Object pValue) |
(package private) java.util.Map<K,V> |
convertToMap()
Converts to a Map
|
java.util.Set<java.util.Map.Entry<K,V>> |
entrySet() |
abstract java.util.Enumeration<K> |
enumerateKeys()
Returns an enumeration of the keys
|
V |
get(java.lang.Object pKey) |
java.util.Map<K,V> |
getAsMap()
Converts the MapSource to a Map.
|
abstract V |
getValue(java.lang.Object pKey)
Returns the value associated with the given key, or null if not
found.
|
boolean |
isEmpty() |
abstract boolean |
isMutable()
Returns true if it is possible for this data source to change
|
java.util.Set<K> |
keySet() |
V |
put(K pKey,
V pValue) |
void |
putAll(java.util.Map<? extends K,? extends V> pMap) |
V |
remove(java.lang.Object pKey) |
int |
size() |
java.util.Collection<V> |
values() |
public boolean containsKey(java.lang.Object pKey)
public boolean containsValue(java.lang.Object pValue)
public abstract java.util.Enumeration<K> enumerateKeys()
public abstract boolean isMutable()
public abstract V getValue(java.lang.Object pKey)
public java.util.Map<K,V> getAsMap()