public static class RBTree.Node<K extends Comparable<? super K>,V> extends Object implements Entry, Comparable<RBTree.Node<K,V>>
Modifier and Type | Field and Description |
---|---|
RBTree.Color |
color |
K |
key |
RBTree.Node<K,V> |
left |
RBTree.Node<K,V> |
parent |
RBTree.Node<K,V> |
right |
V |
value |
Constructor and Description |
---|
Node(K key,
V value,
RBTree.Color nodeColor,
RBTree.Node<K,V> left,
RBTree.Node<K,V> right) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(RBTree.Node<K,V> other) |
Entry |
getNext() |
RBTree.Node<K,V> |
grandparent() |
void |
setNext(Entry next) |
RBTree.Node<K,V> |
sibling() |
String |
toString() |
RBTree.Node<K,V> |
uncle() |
public K extends Comparable<? super K> key
public V value
public RBTree.Node<K extends Comparable<? super K>,V> left
public RBTree.Node<K extends Comparable<? super K>,V> right
public RBTree.Node<K extends Comparable<? super K>,V> parent
public RBTree.Color color
public Node(K key, V value, RBTree.Color nodeColor, RBTree.Node<K,V> left, RBTree.Node<K,V> right)
public RBTree.Node<K,V> grandparent()
public RBTree.Node<K,V> sibling()
public RBTree.Node<K,V> uncle()
public int compareTo(RBTree.Node<K,V> other)
compareTo
in interface Comparable<RBTree.Node<K extends Comparable<? super K>,V>>
Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.