Package Behavioral.Memento
Class Memento
java.lang.Object
Behavioral.Memento.Memento
The Memento class stores the state of the Originator.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Memento
Constructor to initialize the Memento with a state.- Parameters:
state- The state to save.
-
-
Method Details
-
getState
Retrieves the saved state.- Returns:
- The saved state as a string.
-