public final class UserVariables extends HashMap<String,Object>
This class is a simple extension of HashMap
that enforces all keys to begin
with the string "user." (case insensitive).
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
UserVariables() |
Modifier and Type | Method and Description |
---|---|
Object |
put(String name,
Object value)
Associates the specified value with the user variable with the specified name in this map.
|
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, putAll, remove, size, values
equals, hashCode, toString
public Object put(String name, Object value)
put
in interface Map<String,Object>
put
in class HashMap<String,Object>
name
- user variable name with which the specified value is to be associated. This name
cannot be null
and must begin with the string "user." (case insensitive).value
- value to be associated with the specified user variable name. Cannot be null
.name
, or null
if there was no
previous mapping for name
.NullPointerException
- if either argument is null
.IllegalArgumentException
- if name
does not begin with the string "user."
(ignoring case).