public interface HeadsSuccessWithInfoAndWarnings<R,M> extends HeadsSuccessWithInfo<R,M>, HeadsSuccessWithWarnings<R,M>
A heads (success) coin with a value with further information and some warnings.
| Modifier and Type | Method and Description |
|---|---|
static <R,M> HeadsSuccessWithInfoAndWarnings<R,M> |
create(R value)
Creates a new success coin with given value and information.
|
default String |
render()
Renders the warnings and information sets.
|
hasInfoReports, reportsInfoaddAllInfos, addInfo, clearInfoMessages, create, getInfoMessages, hasInformation, isInfoSethasWarningReports, reportsWarningsgetReturn, hasErrorReports, isError, isSuccess, isTails, reportsErrorsaddAllWarnings, addWarning, clearWarningMessages, create, getWarningMessages, hasWarnings, isErrorSet, isWarningSetdefault String render()
Renders the warnings and information sets.
The method uses DoesRender or simple toString to render warnings and information.
Each element in the sets is rendered in a single line, preceded by the type (warning or info).
Warnings are rendered first, followed by information.
render in interface DoesRenderrender in interface HeadsSuccessWithInfo<R,M>render in interface HeadsSuccessWithWarnings<R,M>render in interface IsInfoSet<M>render in interface IsWarningSet<M>static <R,M> HeadsSuccessWithInfoAndWarnings<R,M> create(R value)
Creates a new success coin with given value and information.
create in interface HeadsSuccess<R>create in interface HeadsSuccessWithInfo<R,M>create in interface HeadsSuccessWithWarnings<R,M>R - type of the return valueM - the message type for the setvalue - the actual return valueCopyright © 2016–2017. All rights reserved.