Class AbstractMessage

    • Constructor Detail

      • AbstractMessage

        protected AbstractMessage​(String content)
    • Method Detail

      • getContent

        public String getContent()
        Description copied from interface: Message
        Gets the content of the message.
        Specified by:
        getContent in interface Message
        Returns:
        the message content
      • getDisplayLiveTime

        public long getDisplayLiveTime()
        Description copied from interface: Message
        Gets the time to live of the message after to have been displayed.
        Specified by:
        getDisplayLiveTime in interface Message
        Returns:
        the time in milliseconds.
      • setDisplayLiveTime

        public Message setDisplayLiveTime​(long milliseconds)
        Description copied from interface: Message
        Sets the time to live of the message after to have been displayed.
        Specified by:
        setDisplayLiveTime in interface Message
        Parameters:
        milliseconds - 0 = unlimited
        Returns:
        the message
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object