|
Project JXTA | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.jxta.id.ID
Field Summary | |
protected byte[] |
bytes
|
protected static byte |
flagCodatID
|
protected static byte |
flagID
|
protected static byte |
flagPeerGroupID
|
protected static byte |
flagPeerID
|
protected static byte |
flagPipeID
|
protected static int |
flagsEncodingOffset
|
protected static int |
flagsIdTypeOffset
|
protected static int |
flagsOffset
|
protected static int |
flagsSize
|
protected static int |
IdByteArraySize
This class represents a JXTA ID. |
static ID |
nullID
The null CodatID. |
static java.lang.String |
URIEncodingName
|
protected static byte |
UUIDEncoded
|
Constructor Summary | |
ID()
Constructor for the null case. |
Method Summary | |
protected long |
bytesIntoLong(int offset)
return the long value |
java.lang.Object |
clone()
Clones this ID |
boolean |
equals(java.lang.Object target)
Compares two CodatIds for equality. |
PeerGroupID |
getPeerGroupID()
Returns PeerGroupId of the Peer Group to which this CodatId belongs. |
java.net.URL |
getURL()
Public member which returns a URI (URL in Java nomenclature) of the Codat ID. |
int |
hashCode()
Public member calculates a hash code for this ID. |
boolean |
isSamePeerGroup(ID target)
Returns true if this CodatId is in the same Peer Group as the target. |
protected void |
longIntoBytes(int offset,
long value)
convert a long into the byte array |
java.lang.String |
toString()
Public member which returns a string representation of the ID. |
Methods inherited from class java.lang.Object |
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
protected static final int IdByteArraySize
IDFactory
,
net.jxta.id.UUID
,
net.jxta.id.UUIDFactory
protected static final int flagsSize
protected static final int flagsIdTypeOffset
protected static final byte flagID
protected static final byte flagCodatID
protected static final byte flagPeerGroupID
protected static final byte flagPeerID
protected static final byte flagPipeID
protected static final int flagsEncodingOffset
protected static final byte UUIDEncoded
protected static final int flagsOffset
protected byte[] bytes
public static final ID nullID
public static final java.lang.String URIEncodingName
Constructor Detail |
public ID()
Method Detail |
public boolean isSamePeerGroup(ID target)
target
- The CodatId which will checked for a Peer Group match.public PeerGroupID getPeerGroupID()
public boolean equals(java.lang.Object target)
target
- the CodatID to be compared against.public java.lang.Object clone()
public int hashCode()
public java.lang.String toString()
public java.net.URL getURL()
protected void longIntoBytes(int offset, long value)
offset
- offsetprotected long bytesIntoLong(int offset)
offset
-
|
Project JXTA | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |