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