java.lang.Object
com.aoapps.hodgepodge.tree.TreeCopy<E>
- All Implemented Interfaces:
Tree<E>
Creates a deep copy of a tree. The value objects are not copied. This has two purposes:
- 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.
- 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.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
TreeCopy
- Throws:
IOException
SQLException
-
TreeCopy
- Throws:
IOException
SQLException
-
-
Method Details
-
getRootNodes
Gets the list of root nodes.- Specified by:
getRootNodes
in interfaceTree<E>
-