public class AVLNode<Q> extends Object implements Comparator<Q>, Serializable
| Constructor and Description |
|---|
AVLNode(Comparator<Q> comp,
AVLNode<Q> parent,
Q data) |
AVLNode(Comparator<Q> comp,
Q data) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addDuplicate(Q data) |
int |
compare(Q o1,
Q o2) |
boolean |
equals(Object obj) |
int |
getBalance() |
Q |
getData() |
List<Q> |
getDuplicates() |
int |
getHeight() |
AVLNode<Q> |
getLeft() |
AVLNode<Q> |
getParent() |
AVLNode<Q> |
getRight() |
boolean |
hasDuplicates() |
int |
hashCode() |
void |
setBalance(int balance) |
void |
setData(Q data) |
void |
setDuplicates(List<Q> duplicates) |
void |
setHeight(int height) |
void |
setLeft(AVLNode<Q> left) |
void |
setParent(AVLNode<Q> parent) |
void |
setRight(AVLNode<Q> right) |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic AVLNode(Comparator<Q> comp, AVLNode<Q> parent, Q data)
comp - parent - data - public AVLNode(Comparator<Q> comp, Q data)
comp - data - public boolean hasDuplicates()
public boolean addDuplicate(Q data)
data - public int compare(Q o1, Q o2)
compare in interface Comparator<Q>public Q getData()
public void setData(Q data)
data - public int getHeight()
public void setHeight(int height)
height - public int getBalance()
public void setBalance(int balance)
balance - Copyright © 2018 Terra Software Informatics LLC.. All rights reserved.