T
- the type of message in this containerpublic interface SingleMessageContainer<T extends Message> extends MessageContainer<T>
MessageContainer
that contains only one message.MessageContainer
,
MultipleMessagesContainer
,
SelectableMessagesContainer
Modifier and Type | Method and Description |
---|---|
T |
getMessage()
Returns the contained message.
|
getComponent, getMessageClass, getName, isEmpty
T getMessage()
null
if no message is present or an error
occurred while getting the message (for example, failed to read a persisted message).null
if not present or an error occurred while
getting the message.