Package org.aksw.commons.util.history
Class History
java.lang.Object
org.aksw.commons.util.history.History
A simple history object that is backed by a list of
Callable instances.
Invoking a callable is expected to update the state appropriately.
Going back to memento x and then adding a new memento y first clears all mementos past x.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
mementos
-
currentPosition
protected int currentPosition
-
-
Constructor Details
-
History
public History()
-
-
Method Details
-
addMemento
-
addMemento
-
reset
public void reset() -
canDoBackward
public boolean canDoBackward() -
canDoForward
public boolean canDoForward() -
backward
-
doBackward
public boolean doBackward() -
doFoward
public boolean doFoward() -
forward
-
isEmpty
public boolean isEmpty() -
size
public int size()
-