Class LongWorld
- java.lang.Object
-
- org.chocosolver.memory.trailing.trail.chunck.LongWorld
-
-
Constructor Summary
Constructors Constructor Description LongWorld(int defaultSize, double loadfactor)Make a new world.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intallocated()The allocated trail for this world.voidclear()Clean the stackvoidrevert()Pop all the stack.voidsavePreviousState(StoredLong v, long oldValue, int oldStamp)Reacts when a StoredLong is modified: push the former value & timestamp on the stacks.intused()The amount of values in the stack
-
-
-
Method Detail
-
savePreviousState
public void savePreviousState(StoredLong v, long oldValue, int oldStamp)
Reacts when a StoredLong is modified: push the former value & timestamp on the stacks.
-
revert
public void revert()
Description copied from interface:WorldPop all the stack.
-
clear
public void clear()
Description copied from interface:WorldClean the stack
-
used
public int used()
Description copied from interface:WorldThe amount of values in the stack
-
-