public interface BacktrackableManager
Modifier and Type | Method and Description |
---|---|
void |
addChanged(int index)
It allows to inform the manager that a given item with id (index) has changed at given level.
|
int |
getLevel()
It returns the current level at which the changes are being registered.
|
boolean |
isRecognizedAsChanged(int index)
It allows for easy testing if a given object is considered by
the manager as the object which has changed and needs being
informed about backtracking.
|
void |
removeLevel(int removedLevel)
It allows to inform all objects which have changed at removedLevel
that the backtracking from that level has occurred.
|
void |
setLevel(int level)
It specifies the level which should become the active one in the manager.
|
void |
setSize(int size)
It specifies how many objects within objects array are being actually
managed.
|
void |
update(Backtrackable[] objects,
int noOfObjects)
It updates the manager with new array of objects to manage and new number of them.
|
void addChanged(int index)
index
- it specifies the index of the object which has changed.void setLevel(int level)
level
- the active level at which the changes will be recorded.void removeLevel(int removedLevel)
removedLevel
- it specifies the level which is being removed.void setSize(int size)
size
- the number of objects in the array.boolean isRecognizedAsChanged(int index)
index
- the position of the object which status is in question.int getLevel()
void update(Backtrackable[] objects, int noOfObjects)
objects
- a new array of objectsnoOfObjects
- number of objects in the new array to be taken care of.Copyright © 2022. All rights reserved.