public interface Undoable
Modifier and Type | Method and Description |
---|---|
void |
assign(Undoable old)
Modify the contained data of the instance to copy the instance data
from the given instance.
|
Undoable |
deepCopy()
This is a form of a copy constructor that makes a deep copy of the
current instance and returns this copy as a new instance of the same
class.
|
Undoable deepCopy()
void assign(Undoable old)
assign
method is
called, although this is not a strict requirement.old
- The backup instance from which to copy data.