public interface HeadsSuccessWithWarnings<R,M> extends HeadsSuccess<R>, IsWarningSet<M>
A heads (success) coin with a value and some warnings.
| Modifier and Type | Method and Description |
|---|---|
static <R,M> HeadsSuccessWithWarnings<R,M> |
create(R value)
Creates a new success coin with given value and warnings.
|
default boolean |
hasWarningReports()
Tests if the coin has warnings to report.
|
default String |
render()
Renders the warning set.
|
default boolean |
reportsWarnings()
Tests if the coin reports warnings.
|
getReturn, hasErrorReports, hasInfoReports, isError, isSuccess, isTails, reportsErrors, reportsInfoaddAllWarnings, addWarning, clearWarningMessages, create, getWarningMessages, hasWarnings, isErrorSet, isWarningSetisInfoSetdefault boolean reportsWarnings()
CoinTests if the coin reports warnings.
reportsWarnings in interface Coin<R>default boolean hasWarningReports()
CoinTests if the coin has warnings to report.
hasWarningReports in interface Coin<R>default String render()
Renders the warning set.
The method uses DoesRender or simple toString to render warnings.
Each element in the information set is rendered in a single line, preceded by the type (warning).
render in interface DoesRenderrender in interface IsWarningSet<M>static <R,M> HeadsSuccessWithWarnings<R,M> create(R value)
Creates a new success coin with given value and warnings.
create in interface HeadsSuccess<R>R - type of the return valueM - the message type for the setvalue - the actual return valueCopyright © 2016–2017. All rights reserved.