IDEA通过反射查看TreeMap的红黑树
1.根节点所对应的属性
先通过TreeMap的源码找到根节点所代表的属性
/**
* The comparator used to maintain order in this tree map, or
* null if it uses the natural ordering of its keys.
*
* @serial
*/
private final Comparator<? super K> comparator;
private transient Entry<
原创
2021-03-16 19:33:41 ·
328 阅读 ·
0 评论