Interface MessageCollection


public interface MessageCollection
A collection of messages that haven't been resolved
Since:
2.0
  • Method Details

    • addMessage

      void addMessage(String key, Serializable... arguments)
      Adds a message to the collection
      Parameters:
      key - The i18n key
      arguments - The arguments to insert into the resolved message
    • addMessage

      void addMessage(Message message)
      Adds a message to the collection
      Parameters:
      message - the message
    • addAll

      void addAll(List<Message> messages)
      Adds all messages to the collection
      Parameters:
      messages - The list of messages
    • isEmpty

      boolean isEmpty()
      Returns:
      True if the collection is empty
    • getMessages

      List<Message> getMessages()
      Returns:
      the list of messages