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()
DnNode
isLeaf
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 Object
Object.toString()
Copyright © 2003–2013 The Apache Software Foundation. All rights reserved.