• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1  /*
2   * Copyright (c) 1997, 2013, 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  import java.util.Map.Entry;
30  
31  @SuppressWarnings({"unchecked", "deprecation", "all"})
32  public abstract class AbstractMap<K, V> implements java.util.Map<K,V> {
33  
AbstractMap()34  protected AbstractMap() { throw new RuntimeException("Stub!"); }
35  
size()36  public int size() { throw new RuntimeException("Stub!"); }
37  
isEmpty()38  public boolean isEmpty() { throw new RuntimeException("Stub!"); }
39  
containsValue(@ibcore.util.Nullable java.lang.Object value)40  public boolean containsValue(@libcore.util.Nullable java.lang.Object value) { throw new RuntimeException("Stub!"); }
41  
containsKey(@ibcore.util.Nullable java.lang.Object key)42  public boolean containsKey(@libcore.util.Nullable java.lang.Object key) { throw new RuntimeException("Stub!"); }
43  
get(@ibcore.util.Nullable java.lang.Object key)44  @libcore.util.Nullable public V get(@libcore.util.Nullable java.lang.Object key) { throw new RuntimeException("Stub!"); }
45  
put(@ibcore.util.NullFromTypeParam K key, @libcore.util.NullFromTypeParam V value)46  @libcore.util.Nullable public V put(@libcore.util.NullFromTypeParam K key, @libcore.util.NullFromTypeParam V value) { throw new RuntimeException("Stub!"); }
47  
remove(@ibcore.util.Nullable java.lang.Object key)48  @libcore.util.Nullable public V remove(@libcore.util.Nullable java.lang.Object key) { throw new RuntimeException("Stub!"); }
49  
putAll(@ibcore.util.NonNull java.util.Map<? extends @libcore.util.NullFromTypeParam K,? extends @libcore.util.NullFromTypeParam V> m)50  public void putAll(@libcore.util.NonNull java.util.Map<? extends @libcore.util.NullFromTypeParam K,? extends @libcore.util.NullFromTypeParam V> m) { throw new RuntimeException("Stub!"); }
51  
clear()52  public void clear() { throw new RuntimeException("Stub!"); }
53  
keySet()54  @libcore.util.NonNull public java.util.Set<@libcore.util.NullFromTypeParam K> keySet() { throw new RuntimeException("Stub!"); }
55  
values()56  @libcore.util.NonNull public java.util.Collection<@libcore.util.NullFromTypeParam V> values() { throw new RuntimeException("Stub!"); }
57  
entrySet()58  @libcore.util.NonNull public abstract java.util.Set<java.util.Map.@libcore.util.NonNull Entry<@libcore.util.NullFromTypeParam K, @libcore.util.NullFromTypeParam V>> entrySet();
59  
equals(@ibcore.util.Nullable java.lang.Object o)60  public boolean equals(@libcore.util.Nullable java.lang.Object o) { throw new RuntimeException("Stub!"); }
61  
hashCode()62  public int hashCode() { throw new RuntimeException("Stub!"); }
63  
toString()64  @libcore.util.NonNull public java.lang.String toString() { throw new RuntimeException("Stub!"); }
65  
clone()66  @libcore.util.NonNull protected java.lang.Object clone() throws java.lang.CloneNotSupportedException { throw new RuntimeException("Stub!"); }
67  
68  @SuppressWarnings({"unchecked", "deprecation", "all"})
69  public static class SimpleEntry<K, V> implements java.util.Map.Entry<K,V>, java.io.Serializable {
70  
SimpleEntry(@ibcore.util.NullFromTypeParam K key, @libcore.util.NullFromTypeParam V value)71  public SimpleEntry(@libcore.util.NullFromTypeParam K key, @libcore.util.NullFromTypeParam V value) { throw new RuntimeException("Stub!"); }
72  
SimpleEntry(@ibcore.util.NonNull java.util.Map.Entry<? extends @libcore.util.NullFromTypeParam K, ? extends @libcore.util.NullFromTypeParam V> entry)73  public SimpleEntry(@libcore.util.NonNull java.util.Map.Entry<? extends @libcore.util.NullFromTypeParam K, ? extends @libcore.util.NullFromTypeParam V> entry) { throw new RuntimeException("Stub!"); }
74  
getKey()75  @libcore.util.NullFromTypeParam public K getKey() { throw new RuntimeException("Stub!"); }
76  
getValue()77  @libcore.util.NullFromTypeParam public V getValue() { throw new RuntimeException("Stub!"); }
78  
setValue(@ibcore.util.NullFromTypeParam V value)79  @libcore.util.NullFromTypeParam public V setValue(@libcore.util.NullFromTypeParam V value) { throw new RuntimeException("Stub!"); }
80  
equals(@ibcore.util.Nullable java.lang.Object o)81  public boolean equals(@libcore.util.Nullable java.lang.Object o) { throw new RuntimeException("Stub!"); }
82  
hashCode()83  public int hashCode() { throw new RuntimeException("Stub!"); }
84  
toString()85  @libcore.util.NonNull public java.lang.String toString() { throw new RuntimeException("Stub!"); }
86  }
87  
88  @SuppressWarnings({"unchecked", "deprecation", "all"})
89  public static class SimpleImmutableEntry<K, V> implements java.util.Map.Entry<K,V>, java.io.Serializable {
90  
SimpleImmutableEntry(@ibcore.util.NullFromTypeParam K key, @libcore.util.NullFromTypeParam V value)91  public SimpleImmutableEntry(@libcore.util.NullFromTypeParam K key, @libcore.util.NullFromTypeParam V value) { throw new RuntimeException("Stub!"); }
92  
SimpleImmutableEntry(@ibcore.util.NonNull java.util.Map.Entry<? extends @libcore.util.NullFromTypeParam K,? extends @libcore.util.NullFromTypeParam V> entry)93  public SimpleImmutableEntry(@libcore.util.NonNull java.util.Map.Entry<? extends @libcore.util.NullFromTypeParam K,? extends @libcore.util.NullFromTypeParam V> entry) { throw new RuntimeException("Stub!"); }
94  
getKey()95  @libcore.util.NullFromTypeParam public K getKey() { throw new RuntimeException("Stub!"); }
96  
getValue()97  @libcore.util.NullFromTypeParam public V getValue() { throw new RuntimeException("Stub!"); }
98  
setValue(@ibcore.util.NullFromTypeParam V value)99  @libcore.util.NullFromTypeParam public V setValue(@libcore.util.NullFromTypeParam V value) { throw new RuntimeException("Stub!"); }
100  
equals(@ibcore.util.Nullable java.lang.Object o)101  public boolean equals(@libcore.util.Nullable java.lang.Object o) { throw new RuntimeException("Stub!"); }
102  
hashCode()103  public int hashCode() { throw new RuntimeException("Stub!"); }
104  
toString()105  @libcore.util.NonNull public java.lang.String toString() { throw new RuntimeException("Stub!"); }
106  }
107  
108  }
109