public class DnLeafNode<N> extends Object implements DnNode<N>
| Constructor and Description |
|---|
DnLeafNode(N element)
Creates a new instance of DnLeafNode.
|
| Modifier and Type | Method and Description |
|---|---|
N |
getElement() |
boolean |
isLeaf()
Tells if the implementation is a leaf node.
|
int |
size()
Returns the number of entries under this node.
|
String |
toString() |
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–2016 The Apache Software Foundation. All rights reserved.