Project JXTA

net.jxta.impl.id.CBID
Class PeerID

java.lang.Object
  extended bynet.jxta.id.ID
      extended bynet.jxta.peer.PeerID
          extended bynet.jxta.impl.id.UUID.PeerID
              extended bynet.jxta.impl.id.CBID.PeerID
All Implemented Interfaces:
Serializable

public class PeerID
extends PeerID

An implementation of the PeerID ID Type.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class net.jxta.impl.id.UUID.PeerID
groupIdOffset, id, idOffset, padOffset, padSize
 
Fields inherited from class net.jxta.id.ID
nullID, URIEncodingName, URNNamespace
 
Constructor Summary
protected PeerID()
          Used only internally.
protected PeerID(IDBytes id)
          Intializes 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 peerUUID)
          Creates a PeerID.
 
Method Summary
 String getIDFormat()
          
 ID getPeerGroupID()
          
 UUID getUUID()
          Returns the UUID associated with this PeerID.
 
Methods inherited from class net.jxta.impl.id.UUID.PeerID
equals, getUniqueValue, getURL, hashCode, toURI
 
Methods inherited from class net.jxta.id.ID
clone, create, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PeerID

protected PeerID()
Used only internally.


PeerID

public PeerID(PeerGroupID groupID)
See IDFactory.Instantiator.newPeerID(net.jxta.peergroup.PeerGroupID).


PeerID

protected PeerID(IDBytes id)
Intializes contents from provided ID.

Parameters:
id - the ID data

PeerID

public PeerID(PeerGroupID groupID,
              byte[] seed)
See IDFactory.Instantiator.newPeerID(net.jxta.peergroup.PeerGroupID,byte[]).


PeerID

protected PeerID(UUID groupUUID,
                 UUID peerUUID)
Creates a PeerID. A PeerGroupID is provided

Parameters:
groupUUID - the group to which this will belong.
peerUUID - id of this peer
Method Detail

getIDFormat

public String getIDFormat()

Overrides:
getIDFormat in class PeerID

getPeerGroupID

public ID getPeerGroupID()

Overrides:
getPeerGroupID in class PeerID

getUUID

public UUID getUUID()
Returns the UUID associated with this PeerID.

Returns:
The UUID associated with this PeerID.

JXTA J2SE