public class SimpleIDManagerLong extends Object implements IDManagerLong
| Constructor and Description |
|---|
SimpleIDManagerLong()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
long |
allocate()
Allocate a new unique identifier.
|
void |
free(long id)
Free the given identifier.
|
void |
used(long id)
Declare an identifier as used so it cannot be allocated.
|
public long allocate()
IDManagerLongallocate in interface IDManagerLongpublic void free(long id)
IDManagerLongfree in interface IDManagerLongpublic void used(long id)
IDManagerLongused in interface IDManagerLongCopyright © 2019. All rights reserved.