public class IdCounterElem
extends java.lang.Object
| Constructor and Description |
|---|
IdCounterElem() |
| Modifier and Type | Method and Description |
|---|---|
static int |
getCounter()
Return the Counter.
|
static int |
nextId()
Return the next ID and increment the ID counter by 1.
|
static void |
resetCounter()
Reset the Counter.
|
static void |
setCounter(int counter)
Set the Counter.
|
public static int nextId()
public static int getCounter()
public static void setCounter(int counter)
counter - the counter to setpublic static void resetCounter()