Project JXTA

net.jxta.impl.id.UUID
Class PeerGroupID

java.lang.Object
  extended bynet.jxta.id.ID
      extended bynet.jxta.peergroup.PeerGroupID
          extended bynet.jxta.impl.id.UUID.PeerGroupID
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
PeerGroupID

public class PeerGroupID
extends PeerGroupID

An implementation of the PeerGroupID ID Type.

See Also:
Serialized Form

Field Summary
protected static int groupIdOffset
          Location of the group id UUID within the id bytes.
protected  IDBytes id
          The id data
protected static int padOffset
          Location of the begining of the pad space.
protected static int padSize
          size of the pad space.
protected static int parentgroupIdOffset
          Location of the parent group id UUID within the id bytes.
 
Fields inherited from class net.jxta.peergroup.PeerGroupID
defaultNetPeerGroupID, worldPeerGroupID
 
Fields inherited from class net.jxta.id.ID
nullID, URIEncodingName, URNNamespace
 
Constructor Summary
  PeerGroupID()
          See IDFactory.Instantiator.newPeerGroupID().
  PeerGroupID(byte[] seed)
          See IDFactory.Instantiator.newPeerGroupID(byte[]).
protected PeerGroupID(IDBytes id)
          Intializes contents from provided ID.
  PeerGroupID(PeerGroupID parent)
          See IDFactory.Instantiator.newPeerGroupID(net.jxta.peergroup.PeerGroupID).
  PeerGroupID(PeerGroupID parent, byte[] seed)
          See IDFactory.Instantiator.newPeerGroupID(net.jxta.peergroup.PeerGroupID,byte[]).
protected PeerGroupID(UUID groupUUID)
          Creates a PeerGroupID.
 
Method Summary
 boolean equals(Object target)
          
 String getIDFormat()
          
 PeerGroupID getParentPeerGroupID()
          
 Object getUniqueValue()
          
 URL getURL()
          
protected  UUID getUUID()
          Returns the UUID associated with this PeerGroupID.
 int hashCode()
          
 URI toURI()
          
 
Methods inherited from class net.jxta.peergroup.PeerGroupID
 
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
 

Field Detail

groupIdOffset

protected static final int groupIdOffset
Location of the group id UUID within the id bytes.

See Also:
Constant Field Values

parentgroupIdOffset

protected static final int parentgroupIdOffset
Location of the parent group id UUID within the id bytes.

See Also:
Constant Field Values

padOffset

protected static final int padOffset
Location of the begining of the pad space.

See Also:
Constant Field Values

padSize

protected static final int padSize
size of the pad space.

See Also:
Constant Field Values

id

protected IDBytes id
The id data

Constructor Detail

PeerGroupID

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

Parameters:
id - the ID data

PeerGroupID

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

Parameters:
groupUUID - the PeerGroupID to use to construct the new PeerGroupID

PeerGroupID

public PeerGroupID()
See IDFactory.Instantiator.newPeerGroupID().


PeerGroupID

public PeerGroupID(PeerGroupID parent)
See IDFactory.Instantiator.newPeerGroupID(net.jxta.peergroup.PeerGroupID).


PeerGroupID

public PeerGroupID(byte[] seed)
See IDFactory.Instantiator.newPeerGroupID(byte[]).


PeerGroupID

public PeerGroupID(PeerGroupID parent,
                   byte[] seed)
See IDFactory.Instantiator.newPeerGroupID(net.jxta.peergroup.PeerGroupID,byte[]).

Method Detail

equals

public boolean equals(Object target)


hashCode

public int hashCode()


getIDFormat

public String getIDFormat()


getUniqueValue

public Object getUniqueValue()


getURL

public URL getURL()


getParentPeerGroupID

public PeerGroupID getParentPeerGroupID()


getUUID

protected UUID getUUID()
Returns the UUID associated with this PeerGroupID.

Returns:
The UUID associated with this PeerGroupID.

toURI

public URI toURI()


JXTA J2SE