|
Project JXTA | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.jxta.impl.id.UUID.IDBytes
Maintains the internal representation of a 'uuid' JXTA ID.
IDFactory,
IDFormat,
JXTA Protocols Specification : UUID ID Format,
Serialized Form| Field Summary | |
byte[] |
bytes
The bytes. |
protected int |
cachedHash
The cached hash value for this object |
protected boolean |
hashIsCached
if true then we have calculated the hash value for this object. |
| Constructor Summary | |
IDBytes()
Constructs a new byte representation. |
|
| Method Summary | |
long |
bytesIntoLong(int offset)
Return the long value of a portion of the byte array. |
boolean |
equals(Object target)
Compares two IDs for equality. |
Object |
getUniqueValue()
Return an object containing the unique value of the ID. |
int |
hashCode()
Public member calculates a hash code for this ID. |
void |
longIntoBytes(int offset,
long value)
Insert a long value into the byte array. |
String |
toString()
Returns a string representation of the ID bytes. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public byte[] bytes
protected transient volatile boolean hashIsCached
protected transient int cachedHash
| Constructor Detail |
public IDBytes()
| Method Detail |
public boolean equals(Object target)
target - the ID to be compared against.
public int hashCode()
public String toString()
public Object getUniqueValue()
public void longIntoBytes(int offset,
long value)
offset - location within the byte array to insert.value - value to be inserted.public long bytesIntoLong(int offset)
offset - location within the byte array to extract.
|
JXTA J2SE | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||