Interface MutableOptionalValueHolder<V>
- Type Parameters:
V- the type of the value of aMutableOptionalValueHolder
- All Superinterfaces:
OptionalValueHolder<V>
A
MutableOptionalValueHolder is a OptionalValueHolder whose
value can be set and removed programmatically.- Author:
- Silvan Wyss
-
Method Summary
Modifier and TypeMethodDescriptionvoidRemoves the value of the currentMutableOptionalValueHolder.voidSets the value of the currentMutableOptionalValueHolder.Methods inherited from interface OptionalValueHolder
getStoredValue, hasValue
-
Method Details
-
removeValue
void removeValue()Removes the value of the currentMutableOptionalValueHolder. -
setValue
Sets the value of the currentMutableOptionalValueHolder.- Parameters:
value-- Throws:
RuntimeException- if the given value is blank
-