Interface OptionalContentHolder<C>
- Type Parameters:
C- the type of the content of aOptionalContentHolder
- All Known Subinterfaces:
FluentMutableOptionalContentHolder<H,C>, MutableOptionalContentHolder<C>
public interface OptionalContentHolder<C>
A
OptionalContentHolder can have a content.- Author:
- Silvan Wyss
-
Method Summary
-
Method Details
-
getStoredContent
C getStoredContent()- Returns:
- the content of the current
OptionalContentHolder - Throws:
RuntimeException- if the currentOptionalContentHolderdoes not have a content
-
hasContent
boolean hasContent()- Returns:
- true if the current
OptionalContentHolderhas a content, false otherwise
-