Class SimpleMessage

  • All Implemented Interfaces:
    Serializable, Message


    public class SimpleMessage
    extends Object
    implements Message
    The simplest possible implementation of Message. It just returns the String given as the constructor argument.
    See Also:
    Serialized Form
    • Constructor Detail

      • SimpleMessage

        public SimpleMessage()
        Basic constructor.
      • SimpleMessage

        public SimpleMessage(String message)
        Constructor that includes the message.
        Parameters:
        message - The String message.
    • Method Detail

      • getFormat

        public String getFormat()
        Returns the message.
        Specified by:
        getFormat in interface  Message
        Returns:
        the message.
      • getParameters

        public Object[] getParameters()
        Returns null since there are no parameters.
        Specified by:
        getParameters in interface  Message
        Returns:
        null.
      • equals

        public boolean equals(Object o)
      • hashCode

        public int hashCode()
      • toString

        public String toString()