|
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 |
Constructor Summary | |
---|---|
IDBytes()
Constructs a new byte representation. |
|
IDBytes(byte type)
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)
|
Object |
getUniqueValue()
Return an object containing the unique value of the ID. |
int |
hashCode()
|
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 final byte[] bytes
protected transient int cachedHash
Constructor Detail |
---|
public IDBytes()
public IDBytes(byte type)
Method Detail |
---|
public boolean equals(Object target)
equals
in class Object
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.
|
JXSE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |