Modifier and Type | Field and Description |
---|---|
protected IPacket |
parent |
protected IPacket |
payload |
Constructor and Description |
---|
BasePacket() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Clone this packet and its payload packet but not its parent.
|
boolean |
equals(java.lang.Object obj) |
IPacket |
getParent() |
IPacket |
getPayload() |
int |
hashCode() |
void |
resetChecksum()
Reset any checksums as needed, and call resetChecksum on all parents
|
IPacket |
setParent(IPacket parent) |
IPacket |
setPayload(IPacket payload) |
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
deserialize, serialize
public IPacket getParent()
public IPacket getPayload()
getPayload
in interface IPacket
public IPacket setPayload(IPacket payload)
setPayload
in interface IPacket
payload
- the payload to setpublic void resetChecksum()
IPacket
resetChecksum
in interface IPacket
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object