Package webwork.action
Class SingleValueMap
java.lang.Object
webwork.action.SingleValueMap
- All Implemented Interfaces:
Serializable,Map
A Map that can be used to wrap a map whose values are object arrays. This wrapper will then allow one to access only
the first object of those arrays.
A common usage is to use this wrap the Map received through the ParameterAware interface.
- Author:
- Rickard Öberg (rickard@middleware-company.com)
- See Also:
-
Nested Class Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()booleancontainsKey(Object key) booleancontainsValue(Object value) entrySet()booleanisEmpty()keySet()voidintsize()values()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
SingleValueMap
-
-
Method Details
-
size
public int size() -
isEmpty
public boolean isEmpty() -
containsKey
- Specified by:
containsKeyin interfaceMap
-
containsValue
- Specified by:
containsValuein interfaceMap
-
get
-
put
-
remove
-
putAll
-
clear
public void clear() -
keySet
-
entrySet
-
values
-