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()
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–2014 The Apache Software Foundation. All rights reserved.