Package org.faktorips.util.memento
Interface MementoSupport
public interface MementoSupport
An interface that marks an object as one supporting the memento pattern.
- Author:
- Jan Ortmann
-
Method Summary
Modifier and TypeMethodDescriptionCreates a new memento that holds the object's current state.voidSets the object's state to the one stored in the memento.
-
Method Details
-
newMemento
Memento newMemento()Creates a new memento that holds the object's current state. -
setState
Sets the object's state to the one stored in the memento.- Throws:
IllegalArgumentException- if the memento does not contain this object's state.
-