|
Oracle Internet Directory API Reference 11g Release 1 (11.1.1) E10664-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
oracle.ldap.util.NativeGuid
public final class NativeGuid
This class represents GUIDs (Globally Unique Identifiers), or object IDs. This is an immutable class.
| Field Summary | |
|---|---|
static int |
GUID_BYTE_SIZEnumber of bytes required for GUID |
static int |
GUID_STRING_SIZEnumber of bytes required for the string representation of GUID |
static int |
GUID_STRING_SIZE_NEWorig string size |
| Constructor Summary | |
|---|---|
NativeGuid()Default constructor. |
|
NativeGuid(byte[] byte_array)Construct a NativeGuid from a byte array |
|
NativeGuid(java.lang.String guid)Construct a NativeGuid from a string |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()Clones a NativeGuid object |
static java.lang.String |
compactGuidString(java.lang.String s)Converts the larger version of the GUID String to a more compact version. |
boolean |
equals(java.lang.Object o)Compare the NativeGuid in a string format |
static java.lang.String |
expandGuidString(java.lang.String s)Expands the compact version of the GUID String to a more readable version. |
byte[] |
getBytes()return the 'byte' form of the NativeGuid |
int |
hashCode()return the hashcode of this object for hashing purposes |
static void |
main(java.lang.String[] argv)main function used for testing |
static NativeGuid |
newInstance()generates a new NativeGuid |
java.lang.String |
toString()Retrieves the NativeGuid in a string format |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int GUID_BYTE_SIZE
public static final int GUID_STRING_SIZE
public static final int GUID_STRING_SIZE_NEW
| Constructor Detail |
|---|
public NativeGuid()
public NativeGuid(java.lang.String guid)
guid - a string representation of a Globally Unique Identifierpublic NativeGuid(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 java.lang.String compactGuidString(java.lang.String s)
public static java.lang.String expandGuidString(java.lang.String s)
public static NativeGuid newInstance()
public byte[] getBytes()
public final java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.Object clone()
clone in class java.lang.Objectpublic static void main(java.lang.String[] argv)
|
Oracle Internet Directory API Reference 11g Release 1 (11.1.1) E10664-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||