net.datastructures - version 5.0

net.datastructures
Class ArrayListCompleteBinaryTree.BTPos<E>

java.lang.Object
  extended by net.datastructures.ArrayListCompleteBinaryTree.BTPos<E>
All Implemented Interfaces:
Position<E>
Enclosing class:
ArrayListCompleteBinaryTree<E>

protected static class ArrayListCompleteBinaryTree.BTPos<E>
extends Object
implements Position<E>

Nested class for a index list-based complete binary tree node.


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

Constructor Detail

ArrayListCompleteBinaryTree.BTPos

public ArrayListCompleteBinaryTree.BTPos(E elt,
                                         int i)
Method Detail

element

public E element()
Description copied from interface: Position
Return the element stored at this position.

Specified by:
element in interface Position<E>

index

public int index()

setElement

public E setElement(E elt)

toString

public String toString()
Overrides:
toString in class Object

net.datastructures - version 5.0