fr.paris.lutece.util
Class UniqueIDGenerator

java.lang.Object
  extended by fr.paris.lutece.util.UniqueIDGenerator

public final class UniqueIDGenerator
extends java.lang.Object

This class provide unique Id


Constructor Summary
UniqueIDGenerator()
           
 
Method Summary
static java.lang.String getNewId()
          Return a new unique Id as string
static long getNewIdAsLong()
          Return a new unique Id as long
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UniqueIDGenerator

public UniqueIDGenerator()
Method Detail

getNewIdAsLong

public static long getNewIdAsLong()
Return a new unique Id as long

Returns:
new unique Id

getNewId

public static java.lang.String getNewId()
Return a new unique Id as string

Returns:
new unique Id


Copyright © 2010 Mairie de Paris. All Rights Reserved.