org.soyatec.windowsazure.table
Class Guid

java.lang.Object
  extended by org.soyatec.windowsazure.table.Guid

public class Guid
extends java.lang.Object

A GUID is a 128-bit integer (16 bytes) that can be used across all computers and networks wherever a unique identifier is required. Such an identifier has a very low probability of being duplicated.

Example: c9c108d3-371d-c3fa-b189-687657445da3 http://msdn.microsoft.com/en-us/library/96ff78dc.aspx A string that contains a GUID in one of the following formats ("d" represents a hexadecimal digit whose case is ignored): 32 contiguous digits: dddddddddddddddddddddddddddddddd -or- Groups of 8, 4, 4, 4, and 12 digits with hyphens between the groups. The entire GUID can optionally be enclosed in matching braces or parentheses: dddddddd-dddd-dddd-dddd-dddddddddddd -or- {dddddddd-dddd-dddd-dddd-dddddddddddd} -or- (dddddddd-dddd-dddd-dddd-dddddddddddd)


Constructor Summary
Guid()
          Default constructor.
Guid(boolean secure)
          Constructor with security option.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getValue()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Guid

public Guid()
Default constructor. With no specification of security option, this constructor defaults to lower security, high performance.


Guid

public Guid(boolean secure)
Constructor with security option. Setting secure true enables each random number generated to be cryptographically strong. Secure false defaults to the standard Random function seeded with a single cryptographically strong random number.

Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getValue

public java.lang.String getValue()
Returns:
the value

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object