Class TreeCopy<E>

java.lang.Object
com.aoapps.hodgepodge.tree.TreeCopy<E>
All Implemented Interfaces:
Tree<E>

public class TreeCopy<E> extends Object implements Tree<E>
Creates a deep copy of a tree. The value objects are not copied. This has two purposes:
  1. If the source tree accesses resources that may be slow, the tree may be copied in a background thread and then the swing components updated from this copy.
  2. If it is necessary to operate on a copy of the tree that will not throw any exceptions during traversal, then by using this technique any exception will occur during the copy phase. The copy should not throw any exceptions.
Author:
AO Industries, Inc.