|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sap.tc.mobile.cfs.utils.api.GUID
public class GUID
GUID class.
| Field Summary | |
|---|---|
protected long |
hiBytes
|
protected long |
loBytes
|
| Constructor Summary | |
|---|---|
GUID()
Construct a new GUID. |
|
GUID(byte[] bytes)
Construct GUID from bytes. |
|
GUID(byte[] bytes,
int pos)
Construct GUID from bytes. |
|
GUID(char[] data,
int pos)
Construct GUID from hex characters. |
|
GUID(long h,
long l)
Construct GUID from two longs. |
|
GUID(java.lang.String hexString)
Construct GUID from hex string. |
|
| Method Summary | |
|---|---|
protected void |
_setData(byte[] bytes,
int pos)
Set GUID from bytes. |
protected void |
_setData(char[] data,
int pos)
Set GUID from hex characters. |
protected void |
_setData(java.lang.String hexString)
Set GUID from hex string. |
java.lang.Object |
clone()
|
boolean |
equals(java.lang.Object obj)
|
void |
getBytes(byte[] data,
int startPos)
Fill in byte data with GUID. |
void |
getCharData(char[] data,
int startPos)
Fill in character data with hex representation of this GUID. |
void |
getCharData(java.io.Writer writer)
Writes GUID on the stream, in an efficient way. |
long |
getHi8()
Get high 8 bytes of the GUID as long. |
long |
getLo8()
Get low 8 bytes of the GUID as long. |
int |
hashCode()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected long loBytes
protected long hiBytes
| Constructor Detail |
|---|
public GUID()
public GUID(java.lang.String hexString)
hexString - hex string with 32 characters.
public GUID(char[] data,
int pos)
data - data with 32 characters.pos - starting position of the GUID in array.public GUID(byte[] bytes)
bytes - 16 bytes of the GUID.
public GUID(byte[] bytes,
int pos)
bytes - 16 bytes of the GUID.pos - starting position of GUID in array.
public GUID(long h,
long l)
h - high 8 bytes.l - low 8 bytes.| Method Detail |
|---|
protected final void _setData(java.lang.String hexString)
hexString - hexString hex string with 32 characters.
protected final void _setData(char[] data,
int pos)
data - data with 32 characters.pos - starting position of the GUID in array.
protected final void _setData(byte[] bytes,
int pos)
bytes - 16 bytes of the GUID.pos - starting position of GUID in array.
public final void getCharData(char[] data,
int startPos)
data - data array to fill.startPos - start position in the array.
public final void getBytes(byte[] data,
int startPos)
data - data to fill in.startPos - starting position where to write data.public final long getLo8()
public final long getHi8()
public final boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic final int hashCode()
hashCode in class java.lang.Objectpublic final java.lang.String toString()
toString in class java.lang.Object
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedException
public void getCharData(java.io.Writer writer)
throws java.io.IOException
writer -
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||