public class MessageTypesBuilder
extends java.lang.Object
MessageTypes instances.| Constructor and Description |
|---|
MessageTypesBuilder(boolean add)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addType(@NotNull java.lang.String type)
Adds a type.
|
@NotNull MessageTypes |
build()
Creates a new
MessageTypes instance. |
public MessageTypesBuilder(boolean add)
add - true=show only the given message types;
false=show all but the given message typespublic void addType(@NotNull
@NotNull java.lang.String type)
throws UnknownMessageTypeException
type - the typeUnknownMessageTypeException - if the type is invalid@NotNull public @NotNull MessageTypes build()
MessageTypes instance.