请问在hashMap中的TreeNode子节点为啥要继承LinkedHashMap的Entry节点
static final class TreeNode<K,V> extends LinkedHashMap.Entry<K,V>
static class Entry<K,V> extends HashMap.Node<K,V>
static class Node<K,V> implements Map.Entry<K,V>
为啥不直接继承Node节点呢?毕竟Node是实现了Entry接口的,感觉继承LinkedHashMap.Entry是可以省略的啊。
第一次发帖,不知道应该给多少积分,如何回答的好觉得积分少了的话,可以加。