Class StringMessage
java.lang.Object
io.github.astrapi69.design.pattern.observer.chat.StringMessage
- All Implemented Interfaces:
Message<String>
,Serializable
The class
StringMessage
represents a message that contains a string value It implements
the Message
interface and provides methods to get and set the string value- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a newStringMessage
with no initial valueStringMessage
(String value) Instantiates a newStringMessage
with the given value -
Method Summary
-
Constructor Details
-
StringMessage
public StringMessage()Instantiates a newStringMessage
with no initial value -
StringMessage
Instantiates a newStringMessage
with the given value- Parameters:
value
- the value of the message
-
-
Method Details
-
getValue
Gets the value of the message -
setValue
Sets the value of the message -
toString
-