public interface IsInfoSet<M> extends IsMessageSet
Interface for objects that have a set of info messages.
| Modifier and Type | Method and Description |
|---|---|
default void |
addAllInfos(Collection<M> infos)
Adds all infos from given collection.
|
default void |
addInfo(M info)
Adds a new info.
|
default void |
clearInfoMessages()
Clears all infos.
|
static <M> IsInfoSet<M> |
create()
Creates a new info set.
|
Set<M> |
getInfoMessages()
Returns the info set.
|
default boolean |
hasInformation()
Tests if infos have been added.
|
default boolean |
isInfoSet()
Tests if the message set is an info set.
|
default String |
render()
Renders the info set.
|
isErrorSet, isWarningSetdefault boolean isInfoSet()
IsMessageSetTests if the message set is an info set.
isInfoSet in interface IsMessageSetdefault void clearInfoMessages()
Clears all infos.
Set<M> getInfoMessages()
Returns the info set.
default void addInfo(M info)
Adds a new info.
info - info to adddefault void addAllInfos(Collection<M> infos)
Adds all infos from given collection.
infos - collection of information to adddefault boolean hasInformation()
Tests if infos have been added.
default String render()
Renders the info set.
The method uses DoesRender or simple toString to render infos.
Each element in the info set is rendered in a single line.
render in interface DoesRenderstatic <M> IsInfoSet<M> create()
Creates a new info set.
M - type of the messages in the setCopyright © 2016–2017. All rights reserved.