Compoze Software, Inc.

com.compoze.util
Class Guid


java.lang.Object

  |

  +--com.compoze.util.Guid


public class Guid
extends java.lang.Object

This class is capable of generated what is very close to a globally unique ID. This adheres to no specification because we can't get access to the IEEE hardware address for the machine (otherwise we might adhere to the Network Working Group GUID standard created by Paul J. Leach, Microsoft, and Rich Salz).


Constructor Summary
Guid()
           
 
Method Summary
static java.lang.String getGUID(java.lang.Object obj)
          Gets the next pseudo-globally unique ID.
static void main(java.lang.String[] args)
          Exerciser.
 
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

getGUID


public static java.lang.String getGUID(java.lang.Object obj)
Gets the next pseudo-globally unique ID.
Parameters:
obj - an object to get a hashcode from for more randomness
Returns:
the GUID in the form XXXXXXXX-XXXXXXXX-XXXXXXXX-XXXXXXXXXXXXXXXX (IP address, hash code, system time and 64-bit secure random number)

main


public static void main(java.lang.String[] args)
Exerciser.

Compoze Software, Inc.

Copyright ©1999-2001 Compoze Software, Inc. All rights reserved.