com.ebmwebsourcing.easycommons.uuid
Class SimpleUUIDGenerator

java.lang.Object
  extended by com.ebmwebsourcing.easycommons.uuid.SimpleUUIDGenerator
Direct Known Subclasses:
QualifiedUUIDGenerator

public class SimpleUUIDGenerator
extends java.lang.Object

Author:
ofabre

Constructor Summary
SimpleUUIDGenerator()
           
 
Method Summary
 java.lang.String getNewID()
           Generates an unique identifier.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleUUIDGenerator

public SimpleUUIDGenerator()
Method Detail

getNewID

public java.lang.String getNewID()

Generates an unique identifier. An identifier value has never been returned (existed) before its calculation.

The identifier is composed of one part:

  • an UUID created according to the DCE Universal Token Identifier specification
  • This method is threadsafe.

    Returns:
    A unique identifier


    Copyright © 2012 Petals Link. All Rights Reserved.