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是可以省略的啊。
第一次發帖,不知道應該給多少積分,如何回答的好覺得積分少了的話,可以加。
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/66213.html
標籤:Java EE
上一篇:臥槽,終于記得密碼了,人老了,不管用了,兄弟們,可安好?
下一篇:intellij idea用spring initialzr新建module后,每次都需要手動標記測驗,資源目錄嗎
