Interface PreMessage

All Known Implementing Classes:
SimpleMessage, SimpleMessage.Ping, SimplePreMessage

@CyclicDependency(reason="factory method") public interface PreMessage
Represent a submessage of a message or a negative result of a test. Consists of a text and a list of arguments. The text should include format codes which correspond to the types of the arguments.
  • Method Details

    • getArgs

      Object[] getArgs()
      Returns an access to the arguments. Possibly this is not an access which allows to modify this instance.
      Returns:
      an access to the arguments.
    • getText

      String getText()
      Evident
    • format

      default String format()
      Return the formatting of the string and its arguments.
    • format

      static String format(PreMessage pm)
    • preMessage

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