Class ImplicitObjectELResolver.EnumeratedMap<K,V>
java.lang.Object
javax.servlet.jsp.el.ImplicitObjectELResolver.EnumeratedMap<K,V>
- All Implemented Interfaces:
Map<K,V>
- Enclosing class:
ImplicitObjectELResolver
private abstract static class ImplicitObjectELResolver.EnumeratedMap<K,V>
extends Object
implements 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.
- Since:
- JSP 2.1
-
Nested Class Summary
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()booleancontainsKey(Object pKey) booleancontainsValue(Object pValue) Converts to a MapentrySet()abstract Enumeration<K> getAsMap()Converts the MapSource to a Map.abstract VbooleanisEmpty()abstract booleankeySet()voidintsize()values()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Field Details
-
mMap
-
-
Constructor Details
-
EnumeratedMap
private EnumeratedMap()
-
-
Method Details
-
clear
-
containsKey
- Specified by:
containsKeyin interfaceMap<K,V>
-
containsValue
- Specified by:
containsValuein interfaceMap<K,V>
-
entrySet
-
get
-
isEmpty
-
keySet
-
put
-
putAll
-
remove
-
size
-
values
-
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
-
getAsMap
-
convertToMap
-