|
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 |
flagNullID
|
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 ID. |
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()
Returns a clone of this object. |
boolean |
equals(java.lang.Object target)
Compares two CodatIds for equality. |
abstract 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 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 flagNullID
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 abstract PeerGroupID getPeerGroupID()
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
public boolean equals(java.lang.Object target)
equals
in class java.lang.Object
target
- the CodatID to be compared against.public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
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 |