net.jxta.pipe
Class PipeID
java.lang.Object
|
+--net.jxta.id.ID
|
+--net.jxta.pipe.PipeID
- public class PipeID
- extends ID
- implements java.lang.Cloneable
This class implements a Pipe ID. Each pipe is assigned a unique id
- Since:
- JXTA 1.0
- See Also:
ID
,
IDFactory
,
PeerGroupID
Fields inherited from class net.jxta.id.ID |
bytes,
flagCodatID,
flagNullID,
flagPeerGroupID,
flagPeerID,
flagPipeID,
flagsEncodingOffset,
flagsIdTypeOffset,
flagsOffset,
flagsSize,
IdByteArraySize,
nullID,
URIEncodingName,
UUIDEncoded |
Constructor Summary |
PipeID()
Constructor used in the creation of PipeIDs from URIs. |
PipeID(PeerGroupID groupID)
Constructor. |
Method Summary |
java.lang.Object |
clone()
Clones this PipeID |
boolean |
equals(java.lang.Object id)
Returns true if the two PipeIDs are same |
PeerGroupID |
getPeerGroupID()
Returns the PeerGroupID of the PeerGroup associated with this Peer |
Methods inherited from class java.lang.Object |
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
PipeID
public PipeID()
- Constructor used in the creation of PipeIDs from URIs. Other than that
there is no reason to use this constructor.
- Since:
- JXTA 1.0
PipeID
public PipeID(PeerGroupID groupID)
- Constructor.
Creates a PipeID. A PeerGroupID is provided
- Parameters:
groupID
- the group to which this will belong.- Since:
- JXTA 1.0
getPeerGroupID
public PeerGroupID getPeerGroupID()
- Returns the PeerGroupID of the PeerGroup associated with this Peer
- Overrides:
- getPeerGroupID in class ID
- Returns:
- PeerGroupID return peer group Id
- Since:
- JXTA 1.0
equals
public boolean equals(java.lang.Object id)
- Returns true if the two PipeIDs are same
- Overrides:
- equals in class ID
- Parameters:
ip
- PipeID to compare- Returns:
- boolean true if equals
- Since:
- JXTA 1.0
clone
public java.lang.Object clone()
- Clones this PipeID
- Overrides:
- clone in class ID
- Returns:
- Object Cloned peer id.
- Since:
- JXTA 1.0