|
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.Guid
public final class Guid
Field Summary | |
---|---|
static int |
GUID_BYTE_SIZE number of bytes in a GUID |
static int |
GUID_STRING_SIZE length of GUID string representation |
static int |
GUID_STRING_SIZE_NEW length of GUID compact string reprentation |
Constructor Summary | |
---|---|
Guid() Creates a Guid object |
|
Guid(byte[] byte_array) Construct a Guid from a byte array |
|
Guid(java.lang.String guidHexString) Construct a Guid from its string representation |
Method Summary | |
---|---|
java.lang.Object |
clone() Clones a Guid object |
boolean |
equals(Guid guid) Compare the Guid for equality with this guid |
boolean |
equals(java.lang.Object o) Compare the Object for equality with this guid |
byte[] |
getBytes() return the byte array 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 retained from old implementation for compatibility |
static Guid |
newInstance() generates a new Guid Object. |
java.lang.String |
toString() Retrieves the Guid 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 Guid()
public Guid(java.lang.String guidHexString)
guidHexString
- a non null Hex string representing a Globally Unique Identifier. The string can be either in the expanded or compact formpublic 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
o
- object to be compared for equalitypublic boolean equals(Guid guid)
guid
- object to be compared for equaitypublic int hashCode()
hashCode
in class java.lang.Object
public java.lang.Object clone()
clone
in class java.lang.Object
public 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 |