deegree 2.5 (2011/06/29 09:44 build-8-official)

org.deegree.framework.util
Class IDGenerator

java.lang.Object
  extended by org.deegree.framework.util.IDGenerator

public class IDGenerator
extends java.lang.Object

Produces unique IDs (used to generate Request-IDs, for example).

Version:
$Revision: 18195 $ $Date: 2009-06-18 17:55:39 +0200 (Do, 18 Jun 2009) $
Author:
Markus Schneider

Constructor Summary
IDGenerator()
           
 
Method Summary
 long generateUniqueID()
          Generates a completly unique ID.
static IDGenerator getInstance()
          Returns the only instance of this class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IDGenerator

public IDGenerator()
Method Detail

getInstance

public static IDGenerator getInstance()
Returns the only instance of this class.

Returns:
the only instance of IDGenerator

generateUniqueID

public long generateUniqueID()
Generates a completly unique ID.

Returns:
a unique ID

deegree 2.5 (2011/06/29 09:44 build-8-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org