public class DnLeafNode<N> extends Object implements DnNode<N>
| Constructor and Description |
|---|
DnLeafNode(N element)
Creates a new instance of DnLeafNode.
|
public DnLeafNode(N element)
element - the element to storepublic boolean isLeaf()
DnNodeisLeaf in interface DnNode<N>true if the class is a leaf node, false otherwise.DnNode.isLeaf()public N getElement()
public int size()
public String toString()
toString in class ObjectObject.toString()Copyright © 2003-2012 Apache Software Foundation. All Rights Reserved.