com.pnp.xfeature.utils
Class IdGenerator

java.lang.Object
  extended by com.pnp.xfeature.utils.IdGenerator

public class IdGenerator
extends java.lang.Object

Genereator of unique identifiers of nodes. Implemented as singleton.

Author:
Ondrej Rohlik, 28.1.2005

Method Summary
 long getId()
          returns new ID and increments internal counter
static IdGenerator getInstance()
          accessor method
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static IdGenerator getInstance()
accessor method


getId

public long getId()
returns new ID and increments internal counter



Copyright © 2004 - 2008 ETH Zurich and P&P Software GmbH, All Rights Reserved.