|
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
public final class IDBytes
Maintains the internal representation of a 'uuid' JXTA ID.
IDFactory
,
IDFormat
,
JXTA Protocols Specification : UUID ID Format,
Serialized FormField 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)
equals
in class Object
target
- the ID to be compared against.
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
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 |