net.junaraki.libtree
Class AbstractTree<T>

java.lang.Object
  extended by net.junaraki.libtree.AbstractTree<T>
Type Parameters:
T - the type of elements maintained by this tree
All Implemented Interfaces:
Tree<T>
Direct Known Subclasses:
AbstractRootedTree

public abstract class AbstractTree<T>
extends java.lang.Object
implements Tree<T>

A skeletal implementation of the Tree interface.

Author:
Jun Araki

Constructor Summary
AbstractTree()
          Sole constructor.
 
Method Summary
 boolean isEmpty()
          Returns true if this tree contains no elements.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.junaraki.libtree.Tree
contains, getHeight, search, size
 

Constructor Detail

AbstractTree

public AbstractTree()
Sole constructor.

Method Detail

isEmpty

public boolean isEmpty()
Description copied from interface: Tree
Returns true if this tree contains no elements.

Specified by:
isEmpty in interface Tree<T>
Returns:
true if this tree contains no elements