Interface MutableOptionalContentHolder<C>
- Type Parameters:
C- the type of the content of aMutableOptionalContentHolder
- All Superinterfaces:
OptionalContentHolder<C>
A
MutableOptionalContentHolder is a OptionalContentHolder
whose content can be set and removed programmatically.- Author:
- Silvan Wyss
-
Method Summary
Modifier and TypeMethodDescriptionvoidRemoves the content of the currentMutableOptionalContentHolder.voidsetContent(C content) Sets the content of the currentMutableOptionalContentHolder.Methods inherited from interface OptionalContentHolder
getStoredContent, hasContent
-
Method Details
-
removeContent
void removeContent()Removes the content of the currentMutableOptionalContentHolder. -
setContent
Sets the content of the currentMutableOptionalContentHolder.- Parameters:
content-- Throws:
RuntimeException- if the given content is null
-