|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectextvisitor.AExtVisitorHost<java.lang.Class<?>,ADataPacket>
datapacket.ADataPacket
datapacket.DataPacket<T>
T - The type of the data being held. T must be Serializable.public class DataPacket<T>
Concrete data packet that holds a generic type of data.
| Field Summary | |
|---|---|
private T |
data
The data being held |
private static long |
serialVersionUID
|
| Constructor Summary | |
|---|---|
DataPacket(java.lang.Class<T> c,
T data)
The constructor for a data packet. |
|
| Method Summary | |
|---|---|
T |
getData()
Accessor for the held data |
| Methods inherited from class extvisitor.AExtVisitorHost |
|---|
execute |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final long serialVersionUID
private T data
| Constructor Detail |
|---|
public DataPacket(java.lang.Class<T> c,
T data)
ADataPacket dp = new DataPacket<MyData>(MyData.class, aMyData)
c - Must be T.class where T is the data type being used.data - The data to be held in the data packet| Method Detail |
|---|
public T getData()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||