public interface IsWarningSetFT extends IsWarningSet<FormattingTuple>
Interface for objects that have a set of warning messages.
| Modifier and Type | Method and Description |
|---|---|
default void |
addAllWarnings(IsWarningSetFT warnings)
Adds all warnings from given warning set.
|
default void |
addError(String warning)
Adds a new warning.
|
default void |
addError(String warning,
Object... obj)
Adds a new warning.
|
static IsWarningSetFT |
create()
Creates a new warning set.
|
default String |
render()
Renders the warning set.
|
addAllWarnings, addWarning, clearWarningMessages, getWarningMessages, hasWarnings, isErrorSet, isWarningSetisInfoSetdefault void addAllWarnings(IsWarningSetFT warnings)
Adds all warnings from given warning set.
warnings - warnings to adddefault void addError(String warning)
Adds a new warning.
warning - the warning message, should not be blankNullPointerException - if warning was nullIllegalArgumentException - if warning was blankdefault void addError(String warning, Object... obj)
Adds a new warning.
warning - the warning message, should not be blankobj - the elements for the warning message, should not be null and have no null elementsNullPointerException - if warning or obj was nullIllegalArgumentException - if warning was blank or obj contained null elementsdefault String render()
Renders the warning set. Each element in the warning set is rendered in a single line.
render in interface DoesRenderrender in interface IsWarningSet<FormattingTuple>static IsWarningSetFT create()
Creates a new warning set.
create in interface IsWarningSet<FormattingTuple>Copyright © 2016–2017. All rights reserved.