1 /*
2  * Copyright (c) 1997, 2023, Oracle and/or its affiliates. All rights reserved.
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * This code is free software; you can redistribute it and/or modify it
6  * under the terms of the GNU General Public License version 2 only, as
7  * published by the Free Software Foundation.  Oracle designates this
8  * particular file as subject to the "Classpath" exception as provided
9  * by Oracle in the LICENSE file that accompanied this code.
10  *
11  * This code is distributed in the hope that it will be useful, but WITHOUT
12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14  * version 2 for more details (a copy is included in the LICENSE file that
15  * accompanied this code).
16  *
17  * You should have received a copy of the GNU General Public License version
18  * 2 along with this work; if not, write to the Free Software Foundation,
19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20  *
21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22  * or visit www.oracle.com if you need additional information or have any
23  * questions.
24  */
25 
26 
27 package java.util;
28 
29 @SuppressWarnings({"unchecked", "deprecation", "all"})
30 public class LinkedHashMap<K, V> extends java.util.HashMap<K,V> implements java.util.SequencedMap<K,V>, java.util.Map<K,V> {
31 
LinkedHashMap(int initialCapacity, float loadFactor)32 public LinkedHashMap(int initialCapacity, float loadFactor) { throw new RuntimeException("Stub!"); }
33 
LinkedHashMap(int initialCapacity)34 public LinkedHashMap(int initialCapacity) { throw new RuntimeException("Stub!"); }
35 
LinkedHashMap()36 public LinkedHashMap() { throw new RuntimeException("Stub!"); }
37 
LinkedHashMap(java.util.Map<? extends K,? extends V> m)38 public LinkedHashMap(java.util.Map<? extends K,? extends V> m) { throw new RuntimeException("Stub!"); }
39 
LinkedHashMap(int initialCapacity, float loadFactor, boolean accessOrder)40 public LinkedHashMap(int initialCapacity, float loadFactor, boolean accessOrder) { throw new RuntimeException("Stub!"); }
41 
42 @android.annotation.FlaggedApi(com.android.libcore.Flags.FLAG_V_APIS)
putFirst(K k, V v)43 public V putFirst(K k, V v) { throw new RuntimeException("Stub!"); }
44 
45 @android.annotation.FlaggedApi(com.android.libcore.Flags.FLAG_V_APIS)
putLast(K k, V v)46 public V putLast(K k, V v) { throw new RuntimeException("Stub!"); }
47 
containsValue(java.lang.Object value)48 public boolean containsValue(java.lang.Object value) { throw new RuntimeException("Stub!"); }
49 
get(java.lang.Object key)50 public V get(java.lang.Object key) { throw new RuntimeException("Stub!"); }
51 
getOrDefault(java.lang.Object key, V defaultValue)52 public V getOrDefault(java.lang.Object key, V defaultValue) { throw new RuntimeException("Stub!"); }
53 
clear()54 public void clear() { throw new RuntimeException("Stub!"); }
55 
removeEldestEntry(java.util.Map.Entry<K,V> eldest)56 protected boolean removeEldestEntry(java.util.Map.Entry<K,V> eldest) { throw new RuntimeException("Stub!"); }
57 
keySet()58 public java.util.Set<K> keySet() { throw new RuntimeException("Stub!"); }
59 
60 @android.annotation.FlaggedApi(com.android.libcore.Flags.FLAG_V_APIS)
sequencedKeySet()61 public java.util.SequencedSet<K> sequencedKeySet() { throw new RuntimeException("Stub!"); }
62 
values()63 public java.util.Collection<V> values() { throw new RuntimeException("Stub!"); }
64 
65 @android.annotation.FlaggedApi(com.android.libcore.Flags.FLAG_V_APIS)
sequencedValues()66 public java.util.SequencedCollection<V> sequencedValues() { throw new RuntimeException("Stub!"); }
67 
entrySet()68 public java.util.Set<java.util.Map.Entry<K,V>> entrySet() { throw new RuntimeException("Stub!"); }
69 
70 @android.annotation.FlaggedApi(com.android.libcore.Flags.FLAG_V_APIS)
sequencedEntrySet()71 public java.util.SequencedSet<java.util.Map.Entry<K,V>> sequencedEntrySet() { throw new RuntimeException("Stub!"); }
72 
forEach(java.util.function.BiConsumer<? super K,? super V> action)73 public void forEach(java.util.function.BiConsumer<? super K,? super V> action) { throw new RuntimeException("Stub!"); }
74 
replaceAll(java.util.function.BiFunction<? super K,? super V,? extends V> function)75 public void replaceAll(java.util.function.BiFunction<? super K,? super V,? extends V> function) { throw new RuntimeException("Stub!"); }
76 
77 @android.annotation.FlaggedApi(com.android.libcore.Flags.FLAG_V_APIS)
newLinkedHashMap(int numMappings)78 public static <K, V> java.util.LinkedHashMap<K,V> newLinkedHashMap(int numMappings) { throw new RuntimeException("Stub!"); }
79 
80 @android.annotation.FlaggedApi(com.android.libcore.Flags.FLAG_V_APIS)
reversed()81 public java.util.SequencedMap<K,V> reversed() { throw new RuntimeException("Stub!"); }
82 }
83 
84