Class NoParameterMessage

  • All Implemented Interfaces:
    IMessage

    public class NoParameterMessage
    extends java.lang.Object
    implements IMessage
    • Field Summary

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Command getType()
      "getter" for the type of the command
      java.lang.String toString()
      method which makes the messagetype to a string
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • NoParameterMessage

        public NoParameterMessage​(Command msgType)
        Constructor of the class
        Parameters:
        msgType - type of the message
    • Method Detail

      • getType

        public Command getType()
        "getter" for the type of the command
        Specified by:
        getType in interface IMessage
        Returns:
        type of the command
      • toString

        public java.lang.String toString()
        method which makes the messagetype to a string
        Overrides:
        toString in class java.lang.Object
        Returns:
        type of the message as a string