net.datastructures
Class VectorCompleteBinaryTree.VectorNode
java.lang.Object
net.datastructures.VectorCompleteBinaryTree.VectorNode
- All Implemented Interfaces:
- Position
- Enclosing class:
- VectorCompleteBinaryTree
- protected static class VectorCompleteBinaryTree.VectorNode
- extends Object
- implements Position
Nested class for a vector-based complete binary tree node.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VectorCompleteBinaryTree.VectorNode
public VectorCompleteBinaryTree.VectorNode(Object elt,
int i)
element
public Object element()
- Description copied from interface:
Position
- Returns the element stored at this position.
- Specified by:
element
in interface Position
index
public int index()
setElement
public Object setElement(Object elt)