Interface Memento

    • Method Detail

      • copy

        Memento copy()
        Performs a deep clone of this Memento.
        Returns:
        a deep clone of this Memento
      • restore

        void restore​(Memento memento)
        Combines a Memento state with this Memento
        Parameters:
        memento - the Memento restoring this Memento
      • getFragment

        Fragment<?> getFragment()
        Returns:
        the fragment which this Memento is bound to
      • getAnchor

        String getAnchor()
        Gets the anchor value of this Memento. Mementos with equal anchor values are considered to be capturing the state of the same object but at different points in time.
        Returns:
        the ID of this Memento