1. public LinkedHashMap() {
    2. super();
    3. accessOrder = false;
    4. }
    1. public LinkedHashMap(int initialCapacity) {
    2. super(initialCapacity);
    3. accessOrder = false;
    4. }
    1. public LinkedHashMap(int initialCapacity, float loadFactor) {
    2. super(initialCapacity, loadFactor);
    3. accessOrder = false;
    4. }
    1. public LinkedHashMap(Map<? extends K, ? extends V> m) {
    2. super();
    3. accessOrder = false;
    4. putMapEntries(m, false);
    5. }
    1. public LinkedHashMap(int initialCapacity,
    2. float loadFactor,
    3. boolean accessOrder) {
    4. super(initialCapacity, loadFactor);
    5. this.accessOrder = accessOrder;
    6. }

    注意,构造函数如果不明确传入accessOrder的话,默认都是按插入序的。