Interface IFluentMutableMultiValueHolder<H extends IFluentMutableMultiValueHolder<H,V>, V>
- Type Parameters:
H- is the type of aIFluentMutableMultiValueHolder.V- is the type of the values of aIFluentMutableMultiValueHolder.
- All Superinterfaces:
IMultiValueHolder<V>
public interface IFluentMutableMultiValueHolder<H extends IFluentMutableMultiValueHolder<H,V>, V>
extends IMultiValueHolder<V>
A
IFluentMutableMultiValueHolder is a IMultiValueHolder whose
values can be added and removed programmatically and fluently.- Author:
- Silvan Wyss
-
Method Summary
Modifier and TypeMethodDescriptionAdds the given value to the currentIFluentMutableMultiValueHolder.voidremoveValue(V value) Removes the given value from the currentIFluentMutableMultiValueHolder.voidRemoves all values from the currentIFluentMutableMultiValueHolder.Methods inherited from interface IMultiValueHolder
getStoredValues
-
Method Details
-
addValue
Adds the given value to the currentIFluentMutableMultiValueHolder.- Parameters:
value-- Returns:
- the current
IFluentMutableMultiValueHolder. - Throws:
RuntimeException- if the given value is null.
-
removeValue
Removes the given value from the currentIFluentMutableMultiValueHolder.- Parameters:
value-- Throws:
RuntimeException- if the currentIFluentMutableMultiValueHolderdoes not contain the given value.
-
removeValues
void removeValues()Removes all values from the currentIFluentMutableMultiValueHolder.
-