|
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
public final class 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 FormField 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()
Returns a string identifier which indicates which ID format is used by this ID instance. |
ID |
getPeerGroupID()
Returns PeerGroupID of the Peer Group to which this Peer ID belongs. |
Object |
getUniqueValue()
Returns an object containing the unique value of the ID. |
int |
hashCode()
|
Methods inherited from class net.jxta.peer.PeerID |
---|
create, intern |
Methods inherited from class net.jxta.id.ID |
---|
getURL, toString, toURI |
Methods inherited from class java.lang.Object |
---|
clone, 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)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String getIDFormat()
getIDFormat
in class ID
public Object getUniqueValue()
this
.
getUniqueValue
in class ID
public ID getPeerGroupID()
getPeerGroupID
in class PeerID
protected String getID()
|
JXSE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |