1 2 3 | public class TreeMap<K,V> extends AbstractMap<K,V> implements NavigableMap<K,V>, Cloneable, java.io.Serializable |
1 2 3 4 5 6 7 8 9 10 11 | //比较器,没有指定的话默认使用Key的自然序 private final Comparator<? super K> comparator; //红黑树根节点 private transient Entry<K,V> root; //树中节点的数量 private transient int size = 0; //结构化修改的次数 private transient int modCount = 0; |
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |