public class IdAllocator extends Object
static IdAllocator idAllocator = new IdAllocator();
In its constructor it should use something like:
id = idAllocator.nextId();
Modifier and Type | Field and Description |
---|---|
protected long |
nextId |
Constructor and Description |
---|
IdAllocator() |
Copyright © 2014. All rights reserved.