Package org.zkoss.web.servlet.xel
Class StringKeysMap<V>
- Direct Known Subclasses:
AttributesMap,ParameterMap
A skeletal implementation for Map to wrap something with enumeration of
keys, which must be String.
- Since:
- 3.0.0
- Author:
- tomyeh
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassThe iterator class used to iterator the entries in this map.Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsKey(Object key) protected abstract Enumeration<String>getKeys()Returns an enumeration of keys.protected abstract VReturns the value associated with the specified key.protected abstract voidremoveValue(String key) Removes the specified key.protected abstract voidSets the value associated with the specified key.Methods inherited from class java.util.AbstractMap
clear, clone, containsValue, entrySet, equals, hashCode, isEmpty, keySet, put, putAll, remove, size, toString, valuesMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
StringKeysMap
public StringKeysMap()
-
-
Method Details
-
containsKey
- Specified by:
containsKeyin interfaceMap<String,V> - Overrides:
containsKeyin classAbstractMap<String,V>
-
get
-
getValue
Returns the value associated with the specified key. -
getKeys
Returns an enumeration of keys. -
setValue
Sets the value associated with the specified key. -
removeValue
Removes the specified key.
-