Package org.gatein.pc.api.state
Interface PropertyMap
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<String>getProperty(String key)Return the value for the given key or null if it does not exist.voidsetProperty(String key, List<String> value)Update the value of the given key.-
Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
-
-
-
Method Detail
-
getProperty
List<String> getProperty(String key) throws IllegalArgumentException
Return the value for the given key or null if it does not exist.- Parameters:
key- the requested key- Returns:
- the requested value or null if it does not exist
- Throws:
IllegalArgumentException- if the key is null
-
setProperty
void setProperty(String key, List<String> value) throws IllegalArgumentException, UnsupportedOperationException
Update the value of the given key. If the value object is null it means that the entry must be removed. Implementation can throw an unsupported operation exception when it is abnormal to perform an update.- Parameters:
key- the key to updatevalue- the new value- Throws:
UnsupportedOperationException- if the operation is not supportedIllegalArgumentException- if the key is null
-
-