public final class Messages
extends java.lang.Object
Message
s.Modifier and Type | Method and Description |
---|---|
static Message |
newStringMessage(java.lang.String toString)
|
public static Message newStringMessage(java.lang.String toString)
Message
that has a toString()
method that returns toString
.
If toString
is null
, a NullPointerException
will be thrown.
toString
- the String
to be returned by the toString()
method of the new Message
Message
that has a toString()
method that returns toString
java.lang.NullPointerException
- thrown if, and only if, toString
is null