|
Project JXTA | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.jxta.id.ID
net.jxta.peer.PeerID
net.jxta.impl.id.binaryID.PeerBinaryID
This class implements a PeerID. Each peer is assigned a unique peer id.UUID id are used to implement peer id.
UUID,
UUIDFactory,
Serialized Form| Field Summary |
| Fields inherited from class net.jxta.id.ID |
nullID, URIEncodingName, URNNamespace |
| Constructor Summary | |
|
PeerBinaryID(BinaryID binaryID)
Creates a new PeerID object. |
|
PeerBinaryID(PeerGroupID parent,
byte[] data,
boolean lengthIncluded)
Constructor. |
protected |
PeerBinaryID(String id)
Creates a ID from a string. |
| Method Summary | |
boolean |
equals(Object target)
|
protected String |
getID()
returns the coded ID without the binaryid tag. |
String |
getIDFormat()
|
ID |
getPeerGroupID()
|
Object |
getUniqueValue()
|
URL |
getURL()
|
int |
hashCode()
|
| Methods inherited from class net.jxta.id.ID |
clone, create, toString, toURI |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
protected PeerBinaryID(String id)
id - Value of ID.public PeerBinaryID(BinaryID binaryID)
binaryID - binary id to build the peerID from.
public PeerBinaryID(PeerGroupID parent,
byte[] data,
boolean lengthIncluded)
Note that only the ID for the parent is obtained and not the parent and the grandparent.
parent - the group to which this will belong.data - data byte array to be used as the id.lengthIncluded - If true, the first byte in the data array is the length of the remaining bytes.| Method Detail |
public boolean equals(Object target)
public int hashCode()
public String getIDFormat()
public Object getUniqueValue()
public URL getURL()
public ID getPeerGroupID()
protected String getID()
|
JXTA J2SE | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||