net.datastructures
Class ArrayListCompleteBinaryTree.BTPos<E>
java.lang.Object
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.
ArrayListCompleteBinaryTree.BTPos
public ArrayListCompleteBinaryTree.BTPos(E elt,
int i)
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