public class SimpleMultiValuedPropertyMap<T> extends Object implements MultiValuedPropertyMap<T>
| Constructor and Description |
|---|
SimpleMultiValuedPropertyMap() |
| Modifier and Type | Method and Description |
|---|---|
void |
addValue(String key,
T value) |
void |
append(MultiValuedPropertyMap<T> appended)
Append the multi valued property map to this one.
|
void |
clear()
Clear the properties.
|
T |
getValue(String key)
Returns the first property value or null if it cannot be found.
|
List<T> |
getValues(String key)
Returns the list of values for a specified property.
|
Set<String> |
keySet()
Returns the set of property keys.
|
void |
setValue(String key,
T value) |
int |
size() |
public void addValue(String key, T value)
addValue in interface MultiValuedPropertyMap<T>key - the property keyvalue - the property valueIllegalArgumentException - if name or value is nullpublic void setValue(String key, T value)
setValue in interface MultiValuedPropertyMap<T>key - the property keyvalue - the property valueIllegalArgumentException - if name or value is nullpublic void clear()
clear in interface MultiValuedPropertyMap<T>public T getValue(String key) throws IllegalArgumentException
getValue in interface MultiValuedPropertyMap<T>key - the property keyIllegalArgumentException - if the name argument is nullpublic List<T> getValues(String key)
getValues in interface MultiValuedPropertyMap<T>key - the property keyIllegalArgumentException - if name argument is nullpublic Set<String> keySet()
keySet in interface MultiValuedPropertyMap<T>public int size()
size in interface MultiValuedPropertyMap<T>public void append(MultiValuedPropertyMap<T> appended) throws IllegalArgumentException
append in interface MultiValuedPropertyMap<T>appended - the property map to appendIllegalArgumentException - if the provided map is nullCopyright © 2025 JBoss by Red Hat. All Rights Reserved.