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