Package madkit.message
Class EnumMessage<E extends Enum<E>>
- All Implemented Interfaces:
Serializable
,Cloneable
- Direct Known Subclasses:
GUIMessage
,KernelMessage
,SchedulingMessage
This parameterizable class could be used
to build a message tagged with an enumeration
and conveying any java objects using an array of Object.
- Since:
- MaDKit 5.0.0.14
- Version:
- 5.0
- Author:
- Fabien Michel
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionEnumMessage
(E code, Object... parameters) Builds a message with the specified content -
Method Summary
Methods inherited from class madkit.message.ObjectMessage
getContent, max, min, sort
Methods inherited from class madkit.kernel.Message
clone, getConversationID, getReceiver, getSender
-
Constructor Details
-
EnumMessage
Builds a message with the specified content- Parameters:
code
- an enum constant of type Eparameters
- a list of objects
-
-
Method Details
-
toString
- Overrides:
toString
in classObjectMessage<Object[]>
- See Also:
-
getCode
- Returns:
- the enum constant which has been used to construct this message
-