net.jxta.peergroup
Class PeerGroupID
java.lang.Object
|
+--net.jxta.id.ID
|
+--net.jxta.peergroup.PeerGroupID
- All Implemented Interfaces:
- java.lang.Cloneable
- public class PeerGroupID
- extends ID
- implements java.lang.Cloneable
This class implements a PeerGroup ID. Each peer group is assigned a
unique peer id.UUID id are used to implement peer group id.
- Since:
- JXTA 1.0
- See Also:
ID
,
IDFactory
,
net.jxta.id.UUID
,
net.jxta.id.UUIDFactory
,
PeerID
Fields inherited from class net.jxta.id.ID |
bytes, flagCodatID, flagNullID, flagPeerGroupID, flagPeerID, flagPipeID, flagsEncodingOffset, flagsIdTypeOffset, flagsOffset, flagsSize, IdByteArraySize, nullID, URIEncodingName, UUIDEncoded |
Constructor Summary |
PeerGroupID()
Constructor for creating a new PeerGroupID with a unique ID. |
PeerGroupID(net.jxta.impl.id.UUID groupUUID)
Constructor. |
Method Summary |
java.lang.Object |
clone()
Clones this Peer Group ID |
boolean |
equals(java.lang.Object id)
Returns true if the two PeerGroup IDs are the same |
java.lang.Object |
getGroupUniqueId()
get the peer group unique id |
PeerGroupID |
getPeerGroupID()
Returns the PeerGroupID of the PeerGroup associated with this peer group |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
worldPeerGroupID
public static final PeerGroupID worldPeerGroupID
- The well known Unique Identifier of the world peergroup.
- Since:
- JXTA 1.0
PeerGroupID
public PeerGroupID()
- Constructor for creating a new PeerGroupID with a unique ID.
- Since:
- JXTA 1.0
PeerGroupID
public PeerGroupID(net.jxta.impl.id.UUID groupUUID)
- Constructor.
Creates a PeerGroupID. A PeerGroupID is provided
- Parameters:
groupUUID
- the PeerGroupID to use to construct the new PeerGroupID- Since:
- JXTA 1.0
getPeerGroupID
public PeerGroupID getPeerGroupID()
- Returns the PeerGroupID of the PeerGroup associated with this peer group
- Overrides:
getPeerGroupID
in class ID
- Returns:
- PeerGroupID return the peer group Id
- Since:
- JXTA 1.0
equals
public boolean equals(java.lang.Object id)
- Returns true if the two PeerGroup IDs are the same
- Overrides:
equals
in class ID
- Parameters:
id
- Peer group id to compare with- Returns:
- boolean true if equals
- Since:
- JXTA 1.0
clone
public java.lang.Object clone()
- Clones this Peer Group ID
- Overrides:
clone
in class ID
- Returns:
- Object return a clone object of the peer group Id
- Since:
- JXTA 1.0
getGroupUniqueId
public java.lang.Object getGroupUniqueId()
- get the peer group unique id
- Returns:
- Object peer group unique id
- Since:
- JXTA 1.0