public abstract static class RedBlackTree.Node<K>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected RedBlackTree.Node<K> |
left |
protected RedBlackTree.Node<K> |
parent |
protected RedBlackTree.Node<K> |
right |
Constructor and Description |
---|
Node() |
Modifier and Type | Method and Description |
---|---|
RedBlackTree.Node<K> |
getLeft() |
RedBlackTree.Node<K> |
getParent() |
RedBlackTree.Node<K> |
getRight() |
RedBlackTree.Node<K> |
grandparent() |
abstract boolean |
hasAliveKey(boolean purgeDead) |
boolean |
isBlack() |
abstract boolean |
processAliveKeys(Processor<? super K> processor) |
void |
setColor(boolean isBlack) |
void |
setLeft(RedBlackTree.Node<K> left) |
void |
setParent(RedBlackTree.Node<K> parent) |
void |
setRight(RedBlackTree.Node<K> right) |
RedBlackTree.Node<K> |
sibling() |
protected RedBlackTree.Node<K> left
protected RedBlackTree.Node<K> right
protected RedBlackTree.Node<K> parent
public RedBlackTree.Node<K> grandparent()
public RedBlackTree.Node<K> sibling()
public RedBlackTree.Node<K> getLeft()
public void setLeft(RedBlackTree.Node<K> left)
public RedBlackTree.Node<K> getRight()
public void setRight(RedBlackTree.Node<K> right)
public RedBlackTree.Node<K> getParent()
public void setParent(RedBlackTree.Node<K> parent)
public abstract boolean hasAliveKey(boolean purgeDead)
public boolean isBlack()
public void setColor(boolean isBlack)