Class SimplePreMessage

java.lang.Object
eu.bandm.tools.annotations.SimplePreMessage
All Implemented Interfaces:
PreMessage

public class SimplePreMessage extends Object implements PreMessage
Most simple implementation of a PreMessage.
Since:
1.3
  • Field Details

    • text

      protected final String text
      The text of the message.
    • args

      protected final Object[] args
      The arguments of the message.
  • Constructor Details

    • SimplePreMessage

      public SimplePreMessage(String text, Object... args)
      Evident
  • Method Details

    • getArgs

      public Object[] getArgs()
      Returns a copy of the arguments.
      Specified by:
      getArgs in interface PreMessage
      Returns:
      a copy of the arguments.
    • getText

      public String getText()
      Return the unformatted text component.
      Specified by:
      getText in interface PreMessage
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • preMessage

      public static PreMessage preMessage(String text, Object... args)
      Factory method.