public class LinkedAvlMapNode<K,V>
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
(package private) int |
depth |
(package private) int |
height |
(package private) int |
index |
(package private) boolean |
isLeft |
(package private) K |
key
The key stored in the node
|
(package private) LinkedAvlMapNode<K,V> |
left
The left child
|
(package private) LinkedAvlMapNode<K,V> |
next
The next node, superior to the current node
|
(package private) LinkedAvlMapNode<K,V> |
previous
The previous node, inferior to the current node
|
(package private) LinkedAvlMapNode<K,V> |
right
The right child
|
(package private) SingletonOrOrderedSet<V> |
value
the value stored in the node
|
| Constructor and Description |
|---|
LinkedAvlMapNode(K theKey,
V theValue)
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() |
K |
getKey() |
LinkedAvlMapNode<K,V> |
getLeft() |
LinkedAvlMapNode<K,V> |
getNext() |
LinkedAvlMapNode<K,V> |
getPrevious() |
LinkedAvlMapNode<K,V> |
getRight() |
SingletonOrOrderedSet<V> |
getValue() |
boolean |
isLeaf() |
void |
setDepth(int depth) |
void |
setIndex(int index) |
void |
setLeft(LinkedAvlMapNode<K,V> left) |
void |
setNext(LinkedAvlMapNode<K,V> next) |
void |
setPrevious(LinkedAvlMapNode<K,V> previous) |
void |
setRight(LinkedAvlMapNode<K,V> right) |
java.lang.String |
toString() |
K key
SingletonOrOrderedSet<V> value
LinkedAvlMapNode<K,V> left
LinkedAvlMapNode<K,V> right
LinkedAvlMapNode<K,V> next
LinkedAvlMapNode<K,V> previous
int depth
int index
boolean isLeft
int height
public void setLeft(LinkedAvlMapNode<K,V> left)
public void setRight(LinkedAvlMapNode<K,V> right)
public LinkedAvlMapNode<K,V> getNext()
public LinkedAvlMapNode<K,V> getPrevious()
public LinkedAvlMapNode<K,V> getLeft()
public LinkedAvlMapNode<K,V> getRight()
public K getKey()
public SingletonOrOrderedSet<V> getValue()
public boolean isLeaf()
public int getDepth()
public void setDepth(int depth)
public int getHeight()
public void setNext(LinkedAvlMapNode<K,V> next)
public void setPrevious(LinkedAvlMapNode<K,V> previous)
public int computeHeight()
public int getBalance()
public int getIndex()
public void setIndex(int index)
public java.lang.String toString()
toString in class java.lang.Object