net.datastructures - version 3.0

net.datastructures
Class VectorCompleteBinaryTree.VectorNode

java.lang.Object
  extended bynet.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.


Constructor Summary
VectorCompleteBinaryTree.VectorNode(Object elt, int i)
           
 
Method Summary
 Object element()
          Returns the element stored at this position.
 int index()
           
 Object setElement(Object elt)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VectorCompleteBinaryTree.VectorNode

public VectorCompleteBinaryTree.VectorNode(Object elt,
                                           int i)
Method Detail

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)

net.datastructures - version 3.0