public interface TailsNullWithErrors<M> extends TailsNull, IsErrorSet<M>
A tails (error) coin without a value but some errors.
| Modifier and Type | Method and Description |
|---|---|
static <M> TailsNullWithErrors<M> |
create()
Creates a new null coin with given value and errors.
|
default boolean |
hasErrorReports()
Tests if the coin has errors to report.
|
default String |
render()
Renders the error set.
|
default boolean |
reportsErrors()
Tests if the coin reports errors.
|
hasInfoReports, hasWarningReports, isError, isHeads, isSuccess, reportsInfo, reportsWarningsaddAllErrors, addError, clearErrorMessages, getErrorMessages, hasErrorsisErrorSet, isInfoSet, isWarningSetdefault boolean reportsErrors()
CoinTests if the coin reports errors.
reportsErrors in interface Coin<Object>default boolean hasErrorReports()
CoinTests if the coin has errors to report.
hasErrorReports in interface Coin<Object>default String render()
Renders the error set.
The method uses DoesRender or simple toString to render errors.
Each element in the error set is rendered in a single line, preceded by the type (error).
render in interface DoesRenderrender in interface IsErrorSet<M>static <M> TailsNullWithErrors<M> create()
Creates a new null coin with given value and errors.
create in interface IsErrorSet<M>create in interface TailsNullM - the message type for the setCopyright © 2016–2017. All rights reserved.