|
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.UUID.PeerID
public class PeerID
An implementation of the PeerID
ID Type.
Field Summary | |
---|---|
protected static int |
groupIdOffset
|
protected IDBytes |
id
The id data |
protected static int |
idOffset
|
protected static int |
padOffset
|
protected static int |
padSize
|
Fields inherited from class net.jxta.id.ID |
---|
nullID, URIEncodingName, URNNamespace |
Constructor Summary | |
---|---|
protected |
PeerID()
Used only internally. |
protected |
PeerID(IDBytes id)
Initializes contents from provided ID. |
|
PeerID(PeerGroupID groupID)
See IDFactory.Instantiator.newPeerID(net.jxta.peergroup.PeerGroupID) . |
|
PeerID(PeerGroupID groupID,
byte[] seed)
See IDFactory.Instantiator.newPeerID(net.jxta.peergroup.PeerGroupID,byte[]) . |
protected |
PeerID(UUID groupUUID,
UUID idUUID)
Creates a PeerID. |
Method Summary | |
---|---|
boolean |
equals(Object target)
|
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 |
Field Detail |
---|
protected static final int groupIdOffset
protected static final int idOffset
protected static final int padOffset
protected static final int padSize
protected IDBytes id
Constructor Detail |
---|
protected PeerID()
protected PeerID(IDBytes id)
id
- the ID dataprotected PeerID(UUID groupUUID, UUID idUUID)
groupUUID
- the UUID of the group to which this will belong.idUUID
- the UUID which will be used for this pipe.public PeerID(PeerGroupID groupID)
IDFactory.Instantiator.newPeerID(net.jxta.peergroup.PeerGroupID)
.
public PeerID(PeerGroupID groupID, byte[] seed)
IDFactory.Instantiator.newPeerID(net.jxta.peergroup.PeerGroupID,byte[])
.
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
|
JXSE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |