文章目录
TreeMap
数据结构
TreeMapEntry数组实现二叉查找树
Class TreeMap<K, V> extends AbstractMap<K, V>{
private transient TreeMapEntry<K,V> root;
private final Comparator<? super K> comparator;
static class TreeMapEntry<K,V> implements Map.Entry<K, V> {
K key;
V value;
TreeMapEntry<K,V> left;
TreeMapEntry<K,V> right;
TreeMapEntry <K,V> parent;
}
}