|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectantsnest.datastructure.IDPool
public class IDPool
A pool of available node ID's
| Constructor Summary | |
|---|---|
IDPool()
Constructs a new pool |
|
| Method Summary | |
|---|---|
long |
getNextFreeID()
Gets an available ID from the pool |
long |
getNextHighestID()
Gets the next highest ID available |
void |
returnID(long id)
Returns a now free ID back to the pool |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IDPool()
| Method Detail |
|---|
public long getNextFreeID()
public void returnID(long id)
id - the ID to returnpublic long getNextHighestID()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||