Package javax.servlet.jsp.el
Class ImplicitObjectELResolver.EnumeratedMap
- java.lang.Object
-
- javax.servlet.jsp.el.ImplicitObjectELResolver.EnumeratedMap
-
- All Implemented Interfaces:
java.util.Map
- Enclosing class:
- ImplicitObjectELResolver
private abstract static class ImplicitObjectELResolver.EnumeratedMap extends java.lang.Object implements java.util.MapThis 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.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.MapmMap
-
Constructor Summary
Constructors Modifier Constructor Description privateEnumeratedMap()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidclear()booleancontainsKey(java.lang.Object pKey)booleancontainsValue(java.lang.Object pValue)(package private) java.util.MapconvertToMap()Converts to a Mapjava.util.SetentrySet()abstract java.util.EnumerationenumerateKeys()Returns an enumeration of the keysjava.lang.Objectget(java.lang.Object pKey)java.util.MapgetAsMap()Converts the MapSource to a Map.abstract java.lang.ObjectgetValue(java.lang.Object pKey)Returns the value associated with the given key, or null if not found.booleanisEmpty()abstract booleanisMutable()Returns true if it is possible for this data source to changejava.util.SetkeySet()java.lang.Objectput(java.lang.Object pKey, java.lang.Object pValue)voidputAll(java.util.Map pMap)java.lang.Objectremove(java.lang.Object pKey)intsize()java.util.Collectionvalues()
-
-
-
Method Detail
-
clear
public void clear()
- Specified by:
clearin interfacejava.util.Map
-
containsKey
public boolean containsKey(java.lang.Object pKey)
- Specified by:
containsKeyin interfacejava.util.Map
-
containsValue
public boolean containsValue(java.lang.Object pValue)
- Specified by:
containsValuein interfacejava.util.Map
-
entrySet
public java.util.Set entrySet()
- Specified by:
entrySetin interfacejava.util.Map
-
get
public java.lang.Object get(java.lang.Object pKey)
- Specified by:
getin interfacejava.util.Map
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfacejava.util.Map
-
keySet
public java.util.Set keySet()
- Specified by:
keySetin interfacejava.util.Map
-
put
public java.lang.Object put(java.lang.Object pKey, java.lang.Object pValue)- Specified by:
putin interfacejava.util.Map
-
putAll
public void putAll(java.util.Map pMap)
- Specified by:
putAllin interfacejava.util.Map
-
remove
public java.lang.Object remove(java.lang.Object pKey)
- Specified by:
removein interfacejava.util.Map
-
size
public int size()
- Specified by:
sizein interfacejava.util.Map
-
values
public java.util.Collection values()
- Specified by:
valuesin interfacejava.util.Map
-
enumerateKeys
public abstract java.util.Enumeration enumerateKeys()
Returns an enumeration of the keys
-
isMutable
public abstract boolean isMutable()
Returns true if it is possible for this data source to change
-
getValue
public abstract java.lang.Object getValue(java.lang.Object pKey)
Returns the value associated with the given key, or null if not found.
-
getAsMap
public java.util.Map getAsMap()
Converts the MapSource to a Map. If the map is not mutable, this is cached
-
convertToMap
java.util.Map convertToMap()
Converts to a Map
-
-