|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcgl.narada.protocol.ProtocolID
public class ProtocolID
Protocol packets, especially those notifying the addition, deletion of gateways, nodes and address generation requests need to have unique ID associated with it. This class is responsible for the generation of unique IDs.
| Constructor Summary | |
|---|---|
ProtocolID(byte[] idBytes)
This allows us to unmarshall a protocolID. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
Compares two objects for equality. |
byte[] |
getBytes()
This method marshalls a protocolID. |
int |
hashCode()
Generates a hash code for the receiver. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProtocolID(byte[] idBytes)
idBytes - The bytes contained in the stream received at a server
node| Method Detail |
|---|
public byte[] getBytes()
public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectobj - the Object to compare with
Hashtable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||