| Constructor and Description |
|---|
LongWorld(int defaultSize,
double loadfactor)
Make a new world.
|
| Modifier and Type | Method and Description |
|---|---|
int |
allocated()
The allocated trail for this world.
|
void |
clear()
Clean the stack
|
void |
revert()
Pop all the stack.
|
void |
savePreviousState(StoredLong v,
long oldValue,
int oldStamp)
Reacts when a StoredLong is modified: push the former value & timestamp
on the stacks.
|
int |
used()
The amount of values in the stack
|
public LongWorld(int defaultSize,
double loadfactor)
defaultSize - the default world sizepublic void savePreviousState(StoredLong v, long oldValue, int oldStamp)
public void revert()
Worldpublic void clear()
Worldpublic int used()
WorldCopyright © 2017. All rights reserved.