|
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.peergroup.PeerGroupID
net.jxta.impl.id.binaryID.PeerGroupBinaryID
public final class PeerGroupBinaryID
This class implements a PeerGroup ID. Each peer group is assigned a unique peer id.BinaryID id are used to implement peer group id. Because this id is built with BinaryID, pulling the parent group requires a little work. The parent group is the first id, with the second following, separated by a dash '-' character.
ID
,
IDFactory
,
PeerGroupID
,
Serialized FormField Summary | |
---|---|
protected String |
id
This is the id string used in the XML of the id. |
Fields inherited from class net.jxta.peergroup.PeerGroupID |
---|
defaultNetPeerGroupID, worldPeerGroupID |
Fields inherited from class net.jxta.id.ID |
---|
nullID, URIEncodingName, URNNamespace |
Constructor Summary | |
---|---|
|
PeerGroupBinaryID()
Constructor for creating a new PeerGroupID. |
|
PeerGroupBinaryID(BinaryID id)
Constructor. |
|
PeerGroupBinaryID(byte[] data,
boolean lengthIncluded)
Constructor for creating a new PeerGroupID with a unique ID and a parent. |
|
PeerGroupBinaryID(PeerGroupID parent,
byte[] data,
boolean lengthIncluded)
Constructor for creating a new PeerGroupID with a unique ID and a parent. |
protected |
PeerGroupBinaryID(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. |
PeerGroupID |
getParentPeerGroupID()
Returns the parent peer group id of this peer group id, if any. |
ID |
getPeerGroupID()
|
Object |
getUniqueValue()
Returns an object containing the unique value of the ID. |
int |
hashCode()
|
Methods inherited from class net.jxta.peergroup.PeerGroupID |
---|
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 |
Field Detail |
---|
protected String id
Constructor Detail |
---|
public PeerGroupBinaryID(PeerGroupID parent, byte[] data, boolean lengthIncluded)
Note that only the ID for the parent is obtained and not the parent and the grandparent.
parent
- Parent peer group.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.protected PeerGroupBinaryID(String id)
id
- Value of ID.public PeerGroupBinaryID(byte[] data, boolean lengthIncluded)
data
- DOCUMENT ME!lengthIncluded
- DOCUMENT ME!public PeerGroupBinaryID()
public PeerGroupBinaryID(BinaryID id)
id
- the ID dataMethod 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()
public PeerGroupID getParentPeerGroupID()
getParentPeerGroupID
in class PeerGroupID
protected String getID()
|
JXSE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |