net.freeutils.tnef
public class GUID extends Object
GUID
class encapsulates a GUID (Globally Unique IDentifier).
GUID instances are immutable.
Since: 2007-07-19
Constructor Summary | |
---|---|
GUID(String guid)
Constructs a GUID with the specified value.
| |
GUID(byte[] guid)
Constructs a GUID with the specified value.
|
Method Summary | |
---|---|
static String | canonize(String guid)
Canonizes the given GUID string into the canonical format of the form:
"aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", with all values presented as
lowercase hex digits.
|
boolean | equals(Object o)
Returns whether this GUID is identical to the given GUID.
|
int | hashCode()
Returns a hash code value for the object.
|
byte[] | toByteArray()
Returns the GUID as a 16-byte array.
|
String | toString()
Returns a string representation of this object.
|
Parameters: guid the GUID value as a hex string (with optional canonical dashes)
Throws: IllegalArgumentException if the given string does not contain a valid GUID
Parameters: guid the GUID value
Throws: IllegalArgumentException if the given array does not contain a valid GUID
Parameters: guid the GUID value
Returns: the canonized GUID string
Throws: IllegalArgumentException if the given string does not contain a valid GUID
Returns: true
if this object is the same as the obj
argument; false
otherwise
Returns: a hash code value for this object
Returns: the GUID as a 16-byte array
Returns: a string representation of this object