cz.cuni.jagrlib.gui
Class UniqueId

java.lang.Object
  extended by cz.cuni.jagrlib.gui.UniqueId

public class UniqueId
extends java.lang.Object

Class for generating unique key. It generate unique integer key for modules and channels.

See Also:
UniqueId.java

Constructor Summary
UniqueId()
          Default constructor.
 
Method Summary
 int getNextId()
          Generate next key.
 void reset()
          Reset of counter.
 void setLastId(int i)
          Set counter on "i" value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UniqueId

public UniqueId()
Default constructor.

Method Detail

getNextId

public int getNextId()
Generate next key.

Returns:
Key.

setLastId

public void setLastId(int i)
Set counter on "i" value.

Parameters:
i - new value of counter.

reset

public void reset()
Reset of counter.