Interface IMutableMultiValueHolder<V>
- Type Parameters:
V- is the type of the values of aIMutableMultiValueHolder.
- All Superinterfaces:
IMultiValueHolder<V>
A
IMutableMultiValueHolder is a IMultiValueHolder whose
values can be added and removed programmatically.- Author:
- Silvan Wyss
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdds the given value to the currentIMutableMultiValueHolder.voidremoveValue(V value) Removes the given value from the currentIMutableMultiValueHolder.voidRemoves all values from the currentIMutableMultiValueHolder.Methods inherited from interface IMultiValueHolder
getStoredValues
-
Method Details
-
addValue
Adds the given value to the currentIMutableMultiValueHolder.- Parameters:
value-- Throws:
RuntimeException- if the given value is null.
-
removeValue
Removes the given value from the currentIMutableMultiValueHolder.- Parameters:
value-- Throws:
RuntimeException- if the currentIMutableMultiValueHolderdoes not contain the given value.
-
removeValues
void removeValues()Removes all values from the currentIMutableMultiValueHolder.
-