com.opensymphony.util
Class GUID

java.lang.Object
  extended bycom.opensymphony.util.GUID

public final class GUID
extends java.lang.Object

Convenience object for generating GUIDs.

Version:
$Revision: 1.1.1.1 $
Author:
Victor Salaman

Constructor Summary
GUID()
           
 
Method Summary
static java.lang.String generateFormattedGUID()
           
static java.lang.String generateGUID()
          Generates a unique ID based on the Yarrow secure random number generator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GUID

public GUID()
Method Detail

generateFormattedGUID

public static java.lang.String generateFormattedGUID()

generateGUID

public static java.lang.String generateGUID()
Generates a unique ID based on the Yarrow secure random number generator. Yarrow preserves its seed in $java.io.tmpdir/seedfile, so the chances of getting a collision are amazingly, amazingly small. Even on separate machines, this shouldn't yield matches.


See www.opensymphony.com for more information.