|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.portal.common.util.SimpleMultiValuedPropertyMap<T>
public class SimpleMultiValuedPropertyMap<T>
A map of multi valued properties.
Constructor Summary | |
---|---|
SimpleMultiValuedPropertyMap()
|
Method Summary | |
---|---|
void |
addValue(java.lang.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(java.lang.String key)
Returns the first property value or null if it cannot be found. |
java.util.List<T> |
getValues(java.lang.String key)
Returns the list of values for a specified property. |
java.util.Set<java.lang.String> |
keySet()
Returns the set of property keys. |
void |
setValue(java.lang.String key,
T value)
|
int |
size()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleMultiValuedPropertyMap()
Method Detail |
---|
public void addValue(java.lang.String key, T value)
addValue
in interface MultiValuedPropertyMap<T>
key
- the property keyvalue
- the property value
java.lang.IllegalArgumentException
- if name or value is nullpublic void setValue(java.lang.String key, T value)
setValue
in interface MultiValuedPropertyMap<T>
key
- the property keyvalue
- the property value
java.lang.IllegalArgumentException
- if name or value is nullpublic void clear()
clear
in interface MultiValuedPropertyMap<T>
public T getValue(java.lang.String key) throws java.lang.IllegalArgumentException
getValue
in interface MultiValuedPropertyMap<T>
key
- the property key
java.lang.IllegalArgumentException
- if the name argument is nullpublic java.util.List<T> getValues(java.lang.String key)
getValues
in interface MultiValuedPropertyMap<T>
key
- the property key
java.lang.IllegalArgumentException
- if name argument is nullpublic java.util.Set<java.lang.String> keySet()
keySet
in interface MultiValuedPropertyMap<T>
public int size()
size
in interface MultiValuedPropertyMap<T>
public void append(MultiValuedPropertyMap<T> appended) throws java.lang.IllegalArgumentException
append
in interface MultiValuedPropertyMap<T>
appended
- the property map to append
java.lang.IllegalArgumentException
- if the provided map is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |