|
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.OrclGuid
public final class OrclGuid
This class represents GUIDs (Globally Unique Identifiers), or object IDs. This is an immutable class.
| Constructor Summary | |
|---|---|
OrclGuid()Constructs a OrclGuid instance from a string |
|
OrclGuid(byte[] byte_array)Constructs an OrclGuid instance from a byte array |
|
OrclGuid(java.lang.String string_guid)Constructs a OrclGuid instance from a string |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()Returns a clone this OrclGuid 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)Compares this OrclGuid with another OrclGuid 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()Returns the 'byte' form of the Guid |
int |
hashCode()Returns the hashcode of this object for hashing purposes |
static void |
main(java.lang.String[] argv)main function used for testing |
static OrclGuid |
newInstance()Returns a new OrclGuid instance |
java.lang.String |
toString()Returns the Guid in a string format |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public OrclGuid()
OrclGuid instance from a stringpublic OrclGuid(java.lang.String string_guid)
OrclGuid instance from a string
string_guid - a string representation of a Globally Unique Identifierpublic OrclGuid(byte[] byte_array)
OrclGuid instance from a 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 OrclGuid newInstance()
OrclGuid instancepublic 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 java.lang.String compactGuidString(java.lang.String s)
s - a valid GUID stringpublic static java.lang.String expandGuidString(java.lang.String s)
s - a valid compacted GUID stringpublic 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 | ||||||||