Home > Back-end >  Excuse me why TreeNode child nodes in the hashMap inheritance LinkedHashMap Entry node
Excuse me why TreeNode child nodes in the hashMap inheritance LinkedHashMap Entry node

Time:09-23

The static final class TreeNode Extends LinkedHashMap. Entry

Static class Entry Extends HashMap. Node

Static class Node Implements the Map. Entry


Why not just inherits the Node Node? Node, after all, is to achieve the Entry of the interface, the feeling is inherited LinkedHashMap. The Entry can be omitted,
Post for the first time, don't know how much credit should be given, how to answer the good feel less integral, can be added,
  • Related