|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jbpm.jpdl.el.impl.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 |
---|
java.util.Map.Entry<K,V> |
Constructor Summary | |
---|---|
EnumeratedMap()
|
Method Summary | |
---|---|
void |
clear()
|
boolean |
containsKey(java.lang.Object pKey)
|
boolean |
containsValue(java.lang.Object pValue)
|
java.util.Set |
entrySet()
|
abstract java.util.Enumeration |
enumerateKeys()
Returns an enumeration of the keys |
java.lang.Object |
get(java.lang.Object pKey)
|
java.util.Map |
getAsMap()
Converts the MapSource to a Map. |
abstract java.lang.Object |
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 |
keySet()
|
java.lang.Object |
put(java.lang.Object pKey,
java.lang.Object pValue)
|
void |
putAll(java.util.Map pMap)
|
java.lang.Object |
remove(java.lang.Object pKey)
|
int |
size()
|
java.util.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 java.util.Map
public boolean containsKey(java.lang.Object pKey)
containsKey
in interface java.util.Map
public boolean containsValue(java.lang.Object pValue)
containsValue
in interface java.util.Map
public java.util.Set entrySet()
entrySet
in interface java.util.Map
public java.lang.Object get(java.lang.Object pKey)
get
in interface java.util.Map
public boolean isEmpty()
isEmpty
in interface java.util.Map
public java.util.Set keySet()
keySet
in interface java.util.Map
public java.lang.Object put(java.lang.Object pKey, java.lang.Object pValue)
put
in interface java.util.Map
public void putAll(java.util.Map pMap)
putAll
in interface java.util.Map
public java.lang.Object remove(java.lang.Object pKey)
remove
in interface java.util.Map
public int size()
size
in interface java.util.Map
public java.util.Collection values()
values
in interface java.util.Map
public abstract java.util.Enumeration enumerateKeys()
public abstract boolean isMutable()
public abstract java.lang.Object getValue(java.lang.Object pKey)
public java.util.Map getAsMap()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |