public class LinkedAvlNode<T> extends Object
Constructor and Description |
---|
LinkedAvlNode(T theKey)
Creates a new instance of LinkedAvlNode, containing a given value.
|
Modifier and Type | Method and Description |
---|---|
int |
computeHeight() |
int |
getBalance() |
int |
getDepth() |
int |
getHeight() |
int |
getIndex() |
T |
getKey() |
LinkedAvlNode<T> |
getLeft() |
LinkedAvlNode<T> |
getNext() |
LinkedAvlNode<T> |
getPrevious() |
LinkedAvlNode<T> |
getRight() |
boolean |
isLeaf() |
void |
setDepth(int depth) |
void |
setIndex(int index) |
void |
setLeft(LinkedAvlNode<T> left) |
void |
setNext(LinkedAvlNode<T> next) |
void |
setPrevious(LinkedAvlNode<T> previous) |
void |
setRight(LinkedAvlNode<T> right) |
String |
toString() |
public LinkedAvlNode(T theKey)
theKey
- the stored value on the topmost nodepublic void setLeft(LinkedAvlNode<T> left)
public void setRight(LinkedAvlNode<T> right)
public LinkedAvlNode<T> getNext()
public LinkedAvlNode<T> getPrevious()
public LinkedAvlNode<T> getLeft()
public LinkedAvlNode<T> getRight()
public boolean isLeaf()
public int getDepth()
public void setDepth(int depth)
public int getHeight()
public void setNext(LinkedAvlNode<T> next)
public void setPrevious(LinkedAvlNode<T> previous)
public int computeHeight()
public int getBalance()
public int getIndex()
public void setIndex(int index)
Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.