pictionary.message
Class MessageData<T>

java.lang.Object
  extended by pictionary.message.MessageData<T>
Type Parameters:
T - data's type.
All Implemented Interfaces:
java.io.Serializable

public final class MessageData<T>
extends java.lang.Object
implements java.io.Serializable

A generic class wrapping an object with the same type as the type parameter.
Every Message contains an instance of this class.

Author:
Kristoffer Nordkvist
See Also:
Serialized Form

Field Summary
 T data
          The data object.
 
Constructor Summary
protected MessageData(T data)
          The constructor.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

data

public final T data
The data object.

Constructor Detail

MessageData

protected MessageData(T data)
The constructor.

Parameters:
data - The data.