jrun.jms.core.util
Class UUID

java.lang.Object
  |
  +--jrun.jms.core.util.UUID

public class UUID
extends java.lang.Object

Helper class that generated unique id in the form of Strings

Version:
$Revision: 1.1 $ $Date: 2001/05/24 16:38:42 $
Author:
Jim Alateras

Constructor Summary
UUID()
           
 
Method Summary
static java.lang.String next()
          Return the next UUID
static java.lang.String next(java.lang.String prefix)
          Retunrn the next UUID, given the specified prefix.
static long nextAsLong()
          Return the next UUID as a long
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UUID

public UUID()
Method Detail

next

public static java.lang.String next(java.lang.String prefix)
Retunrn the next UUID, given the specified prefix.
Returns:
String - next unique id

next

public static java.lang.String next()
Return the next UUID
Returns:
String - next unique id

nextAsLong

public static long nextAsLong()
Return the next UUID as a long
Returns:
long - next as long


Copyright � 2002 Macromedia Corporation. All Rights Reserved.