public abstract static class WebRequestContext.EnumeratedMap<K,V> extends Object implements Map<K,V>
This is decode Map implementation driven by decode data source that only provides an enumeration of keys and decode getValue(key) method. This class must be subclassed to implement those methods.
Some of the methods may incur decode 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.
| 构造器和说明 |
|---|
EnumeratedMap() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
clear() |
boolean |
containsKey(Object pKey) |
boolean |
containsValue(Object pValue) |
Set<Map.Entry<K,V>> |
entrySet() |
abstract Enumeration<K> |
enumerateKeys()
Returns an enumeration of the keys
|
V |
get(Object pKey) |
Map<K,V> |
getAsMap()
Converts the MapSource to decode Map.
|
abstract V |
getValue(K 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<K> |
keySet() |
V |
put(K pKey,
V pValue) |
void |
putAll(Map<? extends K,? extends V> pMap) |
V |
remove(Object pKey) |
int |
size() |
Collection<V> |
values() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAllpublic boolean containsKey(Object pKey)
containsKey 在接口中 Map<K,V>public boolean containsValue(Object pValue)
containsValue 在接口中 Map<K,V>public abstract Enumeration<K> enumerateKeys()
public abstract boolean isMutable()
public abstract V getValue(K pKey)
Copyright © 2020 nomou. All rights reserved.