集合7、集合_Map接口_HashMap类_LinkedHashMap底层原理及源码分析

LinkedHashMap底层实现(了解)

源码:

static class Entry<K,V> extends HashMap.Node<K,V> {
        Entry<K,V> before, after;		//能够记录添加的元素的先后顺序
        Entry(int hash, K key, V value, Node<K,V> next) {
            super(hash, key, value, next);
        }
    }
posted @ 2021-11-19 23:49  叁玖贰拾柒  阅读(27)  评论(0)    收藏  举报