|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.taglibs.standard.lang.jstl.EnumeratedMap
public abstract class EnumeratedMap
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.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
Map.Entry<K,V> |
| Constructor Summary | |
|---|---|
EnumeratedMap()
|
|
| Method Summary | |
|---|---|
void |
clear()
|
boolean |
containsKey(Object pKey)
|
boolean |
containsValue(Object pValue)
|
Set |
entrySet()
|
abstract Enumeration |
enumerateKeys()
Returns an enumeration of the keys |
Object |
get(Object pKey)
|
Map |
getAsMap()
Converts the MapSource to a Map. |
abstract Object |
getValue(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 |
Set |
keySet()
|
Object |
put(Object pKey,
Object pValue)
|
void |
putAll(Map pMap)
|
Object |
remove(Object pKey)
|
int |
size()
|
Collection |
values()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Map |
|---|
equals, hashCode |
| Constructor Detail |
|---|
public EnumeratedMap()
| Method Detail |
|---|
public void clear()
clear in interface Mappublic boolean containsKey(Object pKey)
containsKey in interface Mappublic boolean containsValue(Object pValue)
containsValue in interface Mappublic Set entrySet()
entrySet in interface Mappublic Object get(Object pKey)
get in interface Mappublic boolean isEmpty()
isEmpty in interface Mappublic Set keySet()
keySet in interface Map
public Object put(Object pKey,
Object pValue)
put in interface Mappublic void putAll(Map pMap)
putAll in interface Mappublic Object remove(Object pKey)
remove in interface Mappublic int size()
size in interface Mappublic Collection values()
values in interface Mappublic abstract Enumeration enumerateKeys()
public abstract boolean isMutable()
public abstract Object getValue(Object pKey)
public Map getAsMap()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||