public class LLRedBlackBST<K extends Comparable<K>,V> extends LXXRedBlackBST<K>
8+[53+V(类型字节)+K(类型字节)+对齐填充]*n(n为元素个数)
B=24+48*n+(5+V+K+对齐填充)*n
| 限定符和类型 | 类和说明 |
|---|---|
protected static class |
LLRedBlackBST.Node<K extends Comparable<K>,V>
8+V(类型字节)+29+K(类型字节)+对齐填充
B=53+V(类型字节)+K(类型字节)+对齐填充
|
root| 限定符 | 构造器和说明 |
|---|---|
protected |
LLRedBlackBST(K key,
V val) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
delete(K key) |
protected LLRedBlackBST.Node<K,V> |
delete(LLRedBlackBST.Node<K,V> h,
K key) |
V |
get(K key) |
protected LLRedBlackBST.Node<K,V> |
get(LLRedBlackBST.Node<K,V> h,
K key) |
static <K extends Comparable<K>,V> |
of(K key) |
static <K extends Comparable<K>,V> |
of(K key,
V val) |
void |
put(K key,
V val) |
protected LLRedBlackBST.Node<K,V> |
put(LLRedBlackBST.Node<K,V> h,
K key,
V val) |
ceil, ceil, floor, floor, key, keys, keys, keys, keys, keysGe, keysGe, keysLe, keysLe, size, size, sizeGe, sizeGe, sizeLe, sizeLebalance, deleteMax, deleteMax, deleteMin, deleteMin, depth, depth, flipColors, isEmpty, isLeaf, isRed, max, max, min, min, moveRedLeft, moveRedRight, root, rotateLeft, rotateRight, select, select, size, sizepublic static <K extends Comparable<K>,V> LLRedBlackBST<K,V> of(K key, V val)
public static <K extends Comparable<K>,V> LLRedBlackBST<K,V> of(K key)
protected final LLRedBlackBST.Node<K,V> put(LLRedBlackBST.Node<K,V> h, K key, V val)
protected final LLRedBlackBST.Node<K,V> get(LLRedBlackBST.Node<K,V> h, K key)
public final void delete(K key)
protected final LLRedBlackBST.Node<K,V> delete(LLRedBlackBST.Node<K,V> h, K key)
Copyright © 2022. All rights reserved.