Interface FluentMutableOptionalContentHolder<H extends FluentMutableOptionalContentHolder<H,C>, C>
- Type Parameters:
H- the type of aFluentMutableOptionalContentHolderC- the type of the content of aFluentMutableOptionalContentHolder
- All Superinterfaces:
OptionalContentHolder<C>
public interface FluentMutableOptionalContentHolder<H extends FluentMutableOptionalContentHolder<H,C>, C>
extends OptionalContentHolder<C>
A
FluentMutableOptionalContentHolder is a
OptionalContentHolder whose content can be set programmatically and
fluently and removed programmatically.- Author:
- Silvan Wyss
-
Method Summary
Modifier and TypeMethodDescriptionvoidRemoves the content of the currentFluentMutableOptionalContentHolder.setContent(String content) Sets the content of the currentFluentMutableOptionalContentHolder.Methods inherited from interface OptionalContentHolder
getStoredContent, hasContent
-
Method Details
-
removeContent
void removeContent()Removes the content of the currentFluentMutableOptionalContentHolder. -
setContent
Sets the content of the currentFluentMutableOptionalContentHolder.- Parameters:
content-- Returns:
- the current
FluentMutableOptionalContentHolder - Throws:
RuntimeException- if the given content is null
-