Package org.gatein.pc.api.state
Interface PropertyMap
- Version:
- $Revision: 6643 $
- Author:
- Julien Viet
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetProperty(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 Details
-
getProperty
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
-