- Type Parameters:
T -
- All Implemented Interfaces:
Tree<T>
- Direct Known Subclasses:
SubTree, TreeImpl, TreeReplace
public abstract class TreeBase<T>
extends Object
implements Tree<T>
Base implementation that lazily caches the node count
- Author:
- raven
-
Constructor Summary
Constructors
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
TreeBase
public TreeBase()
-
Method Details
-
nodeCount
public long nodeCount()
- Specified by:
nodeCount in interface Tree<T>