org.obe.util
Class UUID

java.lang.Object
  extended byorg.obe.util.UUID

public final class UUID
extends java.lang.Object

Utility class for generating universal unique IDs.

Author:
Anthony Eden

Method Summary
static java.lang.String generate()
          Generate a Universal unique ID.
static java.lang.String generate(java.lang.String id)
          Generate a Universal unique ID if the specified ID is null or an empty String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

generate

public static java.lang.String generate()
Generate a Universal unique ID.

Returns:
The id String

generate

public static java.lang.String generate(java.lang.String id)
Generate a Universal unique ID if the specified ID is null or an empty String.

Parameters:
id - The current ID
Returns:
The current ID or a new UUID


SourceForge.net Logo OBE-1.0 Copyright (c) 2002-2006 Adrian Price. All Rights Reserved.