Package ru.bgcrm.struts.form
Class ArrayHashMap
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<String,
Object>
Map for storing HTTP request parameters,
for a string key may be presented multiple values.
In the fact values are stored as String[],
the second Object generic is used only to return String in the overwritten
get(Object)
method.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,
V>, AbstractMap.SimpleImmutableEntry<K, V> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns a single string value for a keyReturns a single value for a keyString[]
Returns a raw string array value for a keyvoid
void
Stores a raw string array value for a keyvoid
Stores multiple values for multiple keysvoid
setLogTrackingId
(String value) Sets log tracking ID identifier.Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, getOrDefault, isEmpty, keySet, merge, newHashMap, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Constructor Details
-
ArrayHashMap
public ArrayHashMap()
-
-
Method Details
-
setLogTrackingId
Sets log tracking ID identifier.- Parameters:
value
-
-
put
-
putAll
-
get
Returns a single string value for a key -
get
Returns a single value for a key- Parameters:
key
- the key- Returns:
- the value or
null
-
getArray
Returns a raw string array value for a key- Parameters:
key
- the key- Returns:
- the values array or
null
-
putArray
Stores a raw string array value for a key- Parameters:
name
- the keyvalue
- the value
-
putArrays
Stores multiple values for multiple keys- Parameters:
values
- the key-value map
-