Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## madkit.kernel
Class ObjectMessage<T>

    java.lang.Object
      madkit.kernel.Message
          madkit.kernel.ObjectMessage<T>

All Implemented Interfaces:
  java.io.Serializable, java.lang.Cloneable

    public class ObjectMessage<T>

extends Message

A message that conveys an arbitrary object of type T.

See Also:
  Serialized Form

Constructor Summary
`ObjectMessage(T theContent)` Instantiates a new object message with a content of type T.

Method Summary
`T` | `getContent()` Gets the content of the message.

Methods inherited from class madkit.kernel.Message
`clone, getCreationDate, getReceiver, getSender, toString`

Methods inherited from class java.lang.Object
`equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### ObjectMessage

    public ObjectMessage(T theContent)

  Instantiates a new object message with a content of type T.

  Parameters:
    `theContent` - of the message

Method Detail

### getContent

    public T getContent()

  Gets the content of the message.

  Returns:
    the object contained in the message.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © Madkit Team (O. Gutknecht, J. Ferber, F. Michel et al.) All Rights Reserved.