Package eu.bandm.tools.annotations
Class SimplePreMessage
java.lang.Object
eu.bandm.tools.annotations.SimplePreMessage
- All Implemented Interfaces:
PreMessage
Most simple implementation of a
PreMessage
.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionObject[]
getArgs()
Returns a copy of the arguments.getText()
Evidentstatic PreMessage
preMessage
(String text, Object... args) Factory method.toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface eu.bandm.tools.annotations.PreMessage
format
-
Field Details
-
text
The text of the message. -
args
The arguments of the message.
-
-
Constructor Details
-
SimplePreMessage
Evident
-
-
Method Details
-
getArgs
Returns a copy of the arguments.- Specified by:
getArgs
in interfacePreMessage
- Returns:
- a copy of the arguments.
-
getText
Evident- Specified by:
getText
in interfacePreMessage
-
toString
-
preMessage
Factory method.
-