public interface HeadsSuccessWithInfo<R,M> extends HeadsSuccess<R>, IsInfoSet<M>
A heads (success) coin with a value and further information.
| Modifier and Type | Method and Description |
|---|---|
static <R,M> HeadsSuccessWithInfo<R,M> |
create(R value)
Creates a new success coin with given value and information.
|
default boolean |
hasInfoReports()
Tests if the coin has information to report.
|
default String |
render()
Renders the info set.
|
default boolean |
reportsInfo()
Tests if the coin reports information.
|
getReturn, hasErrorReports, hasWarningReports, isError, isSuccess, isTails, reportsErrors, reportsWarningsaddAllInfos, addInfo, clearInfoMessages, create, getInfoMessages, hasInformation, isInfoSetisErrorSet, isWarningSetdefault boolean reportsInfo()
CoinTests if the coin reports information.
reportsInfo in interface Coin<R>default boolean hasInfoReports()
CoinTests if the coin has information to report.
hasInfoReports in interface Coin<R>default String render()
Renders the info set.
The method uses DoesRender or simple toString to render infos.
Each element in the information set is rendered in a single line, preceded by the type (info).
render in interface DoesRenderrender in interface IsInfoSet<M>static <R,M> HeadsSuccessWithInfo<R,M> create(R value)
Creates a new success coin with given value and information.
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.