Interface Memento

All Known Implementing Classes:
StringMemento, XmlMemento

public interface Memento
A memento stores the state of another object called the originator in memory. The memento can be used to reset the originators state to the state saved in the memento.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the object this is a memento of.
  • Method Details

    • getOriginator

      Object getOriginator()
      Returns the object this is a memento of.