Class AbstractVisitorMemento

    • Field Detail

      • fragment

        protected final Fragment<?> fragment
      • visitor

        protected final Visitor visitor
      • anchor

        protected String anchor
    • Constructor Detail

      • AbstractVisitorMemento

        public AbstractVisitorMemento​(Fragment<?> fragment,
                                      Visitor visitor)
    • Method Detail

      • getVisitor

        public Visitor getVisitor()
        Returns:
        the Visitor which this VisitorMemento is bound to
      • getFragment

        public Fragment<?> getFragment()
        Specified by:
        getFragment in interface Memento
        Returns:
        the fragment which this Memento is bound to
      • getAnchor

        public String getAnchor()
        Description copied from interface: Memento
        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.
        Specified by:
        getAnchor in interface Memento
        Returns:
        the ID of this Memento