|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.ldap.util.Guid
This class represents GUIDs (Globally Unique Identifiers), or object IDs. This is an immutable class.
Field Summary | |
static int |
GUID_BYTE_SIZE
number of bytes required for GUID |
static int |
GUID_STRING_SIZE
number of bytes required for the string representation of GUID |
Constructor Summary | |
Guid()
Default constructor. |
|
Guid(java.lang.String guid)
Construct a Guid from a string |
Method Summary | |
java.lang.Object |
clone()
Clones a Guid object |
boolean |
equals(java.lang.Object o)
Compare the Guid in a string format |
byte[] |
getBytes()
return the 'byte' form of the Guid |
int |
hashCode()
return the hashcode of this object for hashing purposes |
static void |
main(java.lang.String[] argv)
main function used for testing |
static Guid |
newInstance()
generates a new Guid |
java.lang.String |
toString()
Retrieves the Guid in a string format |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int GUID_BYTE_SIZE
public static final int GUID_STRING_SIZE
Constructor Detail |
public Guid()
public Guid(java.lang.String guid)
guid
- a string representation of a Globally Unique Identifierpublic Guid(byte[] byte_array)
byte_array
- an array of bytes representing a GUID. This
constructor will validate the length of the
byte array before proceeding.Method Detail |
public static Guid newInstance()
public byte[] getBytes()
public final java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.Object clone()
public static void main(java.lang.String[] argv)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |