Class ForestEvent

    • Constructor Detail

      • ForestEvent

        public ForestEvent​(Forest<?> forest,
                           Tree<?,​?> oldTree,
                           Tree<?,​?> newTree)
        Cinstruct an event.
        Parameters:
        forest - is the source of the event
        oldTree - is the old tree
        newTree - is the new tree
    • Method Detail

      • getForest

        @Pure
        public Forest<?> getForest()
        Replies the forest, source of the event.
        Returns:
        the forest
      • getRemovedTree

        @Pure
        public Tree<?,​?> getRemovedTree()
        Replies the removed tree.
        Returns:
        the removed tree.
      • getAddedTree

        @Pure
        public Tree<?,​?> getAddedTree()
        Replies the added tree.
        Returns:
        the added tree.