Located in compilation unit of io.
| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| public static class |
Comparator.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Comparator | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public RedBlackTree. | color()
Implements io. Return the |
| public Comparator | comparator()
Implements io. Returns the underlying |
| public boolean | contains(T
A value. value)Implements io. Checks, if this |
| public RedBlackTreeModule. | emptyInstance()
Implements io. Returns the empty instance of this RedBlackTree. |
| public Option | find(T
A value value)Implements io. Finds the value stored in this tree, if exists, by applying the underlying comparator to the tree elements and the given element. |
| public boolean | isEmpty()
Implements io. Checks if this |
| public RedBlackTree | left()
Implements io. Returns the left child if this is a non-empty node, otherwise throws. |
| public RedBlackTree | right()
Implements io. Returns the right child if this is a non-empty node, otherwise throws. |
| public int | |
| public String | toString()
Overrides java. Implements io. Returns a Lisp like representation of this tree. |
| public T | value()
Implements io. Returns the value of the current tree node or throws if this is empty. |
| comparator | back to summary |
|---|---|
pack-priv final Comparator<T> comparator
| |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| Empty | back to summary |
|---|---|
pack-priv Empty(Comparator<? super T> comparator)
| |
| color | back to summary |
|---|---|
| public RedBlackTree. Implements io. Doc from io. Return the
An empty node is
| |
| comparator | back to summary |
|---|---|
| public Comparator Implements io. Doc from io. Returns the underlying
| |
| contains | back to summary |
|---|---|
| public boolean contains(T value) Implements io. Doc from io. Checks, if this
| |
| emptyInstance | back to summary |
|---|---|
| public RedBlackTreeModule. Implements io. Doc from io. Returns the empty instance of this RedBlackTree.
| |
| find | back to summary |
|---|---|
| public Option Implements io. Doc from io. Finds the value stored in this tree, if exists, by applying the underlying comparator to the tree elements and the given element. Especially the value returned may differ from the given value, even if the underlying comparator states that both are equal. | |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Implements io. Doc from io. Checks if this
| |
| left | back to summary |
|---|---|
| public RedBlackTree Implements io. Doc from io. Returns the left child if this is a non-empty node, otherwise throws.
| |
| right | back to summary |
|---|---|
| public RedBlackTree Implements io. Doc from io. Returns the right child if this is a non-empty node, otherwise throws.
| |
| size | back to summary |
|---|---|
| public int size() Implements io. Doc from io. Returns the size of this tree.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Implements io. Doc from io. Returns a Lisp like representation of this tree. | |
| value | back to summary |
|---|---|
| public T value() Implements io. Doc from io. Returns the value of the current tree node or throws if this is empty.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final int | |
| pack-priv final RedBlackTree. | |
| pack-priv final RedBlackTreeModule. | |
| pack-priv final RedBlackTree | |
| pack-priv final RedBlackTree | |
| private static final long | |
| pack-priv final int | |
| pack-priv final T |
| Access | Constructor and Description |
|---|---|
| pack-priv | Node(RedBlackTree.
|
| Modifier and Type | Method and Description |
|---|---|
| private static <T> RedBlackTreeModule. | balanceLeft(RedBlackTree.
|
| private static <T> RedBlackTreeModule. | balanceRight(RedBlackTree.
|
| private static <T> Tuple2 | |
| public RedBlackTree. | color()
Implements io. Return the |
| pack-priv RedBlackTreeModule. | |
| pack-priv static <T> RedBlackTree | |
| public Comparator | comparator()
Implements io. Returns the underlying |
| public boolean | contains(T
A value. value)Implements io. Checks, if this |
| pack-priv static <T> Tuple2 | |
| private static <T> Tuple3 | |
| public RedBlackTreeModule. | emptyInstance()
Implements io. Returns the empty instance of this RedBlackTree. |
| public Option | find(T
A value value)Implements io. Finds the value stored in this tree, if exists, by applying the underlying comparator to the tree elements and the given element. |
| pack-priv static <T> RedBlackTreeModule. | |
| public boolean | isEmpty()
Implements io. Checks if this |
| private boolean | |
| private static boolean | |
| pack-priv static <T> RedBlackTree | |
| private static <T> RedBlackTreeModule. | |
| private static <T> RedBlackTreeModule. | |
| public RedBlackTree | left()
Implements io. Returns the left child if this is a non-empty node, otherwise throws. |
| pack-priv static <T> T | |
| pack-priv static <T> RedBlackTree | |
| private static <T> RedBlackTreeModule. | |
| private static <T> RedBlackTreeModule. | |
| private static <T> RedBlackTreeModule. | |
| pack-priv static <T> T | |
| public RedBlackTree | right()
Implements io. Returns the right child if this is a non-empty node, otherwise throws. |
| public int | |
| pack-priv static <T> Tuple2 | |
| private static String | |
| public String | toString()
Overrides java. Implements io. Returns a Lisp like representation of this tree. |
| private static <T> Tuple2 | unbalancedLeft(RedBlackTree.
|
| private static <T> Tuple2 | unbalancedRight(RedBlackTree.
|
| public T | value()
Implements io. Returns the value of the current tree node or throws if this is empty. |
| blackHeight | back to summary |
|---|---|
| pack-priv final int blackHeight | |
| color | back to summary |
|---|---|
| pack-priv final RedBlackTree. | |
| empty | back to summary |
|---|---|
| pack-priv final RedBlackTreeModule. | |
| left | back to summary |
|---|---|
| pack-priv final RedBlackTree<T> left | |
| right | back to summary |
|---|---|
| pack-priv final RedBlackTree<T> right | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| size | back to summary |
|---|---|
| pack-priv final int size | |
| value | back to summary |
|---|---|
pack-priv final T value
| |
| Node | back to summary |
|---|---|
| pack-priv Node(RedBlackTree. | |
| balanceLeft | back to summary |
|---|---|
| private static <T> RedBlackTreeModule. | |
| balanceRight | back to summary |
|---|---|
| private static <T> RedBlackTreeModule. | |
| blackify | back to summary |
|---|---|
| private static <T> Tuple2 | |
| color | back to summary |
|---|---|
| public RedBlackTree. Implements io. Doc from io. Return the
An empty node is
| |
| color | back to summary |
|---|---|
| pack-priv RedBlackTreeModule. | |
| color | back to summary |
|---|---|
| pack-priv static <T> RedBlackTree | |
| comparator | back to summary |
|---|---|
| public Comparator Implements io. Doc from io. Returns the underlying
| |
| contains | back to summary |
|---|---|
| public boolean contains(T value) Implements io. Doc from io. Checks, if this
| |
| delete | back to summary |
|---|---|
| pack-priv static <T> Tuple2 | |
| deleteMin | back to summary |
|---|---|
| private static <T> Tuple3 | |
| emptyInstance | back to summary |
|---|---|
| public RedBlackTreeModule. Implements io. Doc from io. Returns the empty instance of this RedBlackTree.
| |
| find | back to summary |
|---|---|
| public Option Implements io. Doc from io. Finds the value stored in this tree, if exists, by applying the underlying comparator to the tree elements and the given element. Especially the value returned may differ from the given value, even if the underlying comparator states that both are equal. | |
| insert | back to summary |
|---|---|
| pack-priv static <T> RedBlackTreeModule. | |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Implements io. Doc from io. Checks if this
| |
| isLeaf | back to summary |
|---|---|
| private boolean isLeaf() | |
| isRed | back to summary |
|---|---|
| private static boolean isRed(RedBlackTree<?> tree) | |
| join | back to summary |
|---|---|
| pack-priv static <T> RedBlackTree | |
| joinGT | back to summary |
|---|---|
| private static <T> RedBlackTreeModule. | |
| joinLT | back to summary |
|---|---|
| private static <T> RedBlackTreeModule. | |
| left | back to summary |
|---|---|
| public RedBlackTree Implements io. Doc from io. Returns the left child if this is a non-empty node, otherwise throws.
| |
| maximum | back to summary |
|---|---|
| pack-priv static <T> T maximum(RedBlackTreeModule. | |
| merge | back to summary |
|---|---|
| pack-priv static <T> RedBlackTree | |
| mergeEQ | back to summary |
|---|---|
| private static <T> RedBlackTreeModule. | |
| mergeGT | back to summary |
|---|---|
| private static <T> RedBlackTreeModule. | |
| mergeLT | back to summary |
|---|---|
| private static <T> RedBlackTreeModule. | |
| minimum | back to summary |
|---|---|
| pack-priv static <T> T minimum(RedBlackTreeModule. | |
| right | back to summary |
|---|---|
| public RedBlackTree Implements io. Doc from io. Returns the right child if this is a non-empty node, otherwise throws.
| |
| size | back to summary |
|---|---|
| public int size() Implements io. Doc from io. Returns the size of this tree.
| |
| split | back to summary |
|---|---|
| pack-priv static <T> Tuple2 | |
| toLispString | back to summary |
|---|---|
| private static String toLispString(RedBlackTree<?> tree) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Implements io. Doc from io. Returns a Lisp like representation of this tree. | |
| unbalancedLeft | back to summary |
|---|---|
| private static <T> Tuple2 | |
| unbalancedRight | back to summary |
|---|---|
| private static <T> Tuple2 | |
| value | back to summary |
|---|---|
| public T value() Implements io. Doc from io. Returns the value of the current tree node or throws if this is empty.
| |