Lines Matching defs:ArrayMap
26 * ArrayMap is a generic key->value mapping data structure that is
47 public final class ArrayMap<K, V> implements Map<K, V> {
49 private static final String TAG = "ArrayMap";
52 * The minimum amount by which the capacity of a ArrayMap will increase.
63 * @hide Special immutable empty ArrayMap.
65 public static final ArrayMap EMPTY = new ArrayMap(true);
166 throw new UnsupportedOperationException("ArrayMap is immutable");
169 synchronized (ArrayMap.class) {
183 synchronized (ArrayMap.class) {
204 synchronized (ArrayMap.class) {
218 synchronized (ArrayMap.class) {
235 * Create a new empty ArrayMap. The default capacity of an array map is 0, and
238 public ArrayMap() {
245 * Create a new ArrayMap with a given initial capacity.
247 public ArrayMap(int capacity) {
257 private ArrayMap(boolean immutable) {
267 * Create a new ArrayMap with the mappings from the given ArrayMap.
269 public ArrayMap(ArrayMap<K, V> map) {
291 * Like {@link #clear}, but doesn't reduce the capacity of the ArrayMap.
540 throw new IllegalArgumentException("Duplicate key in ArrayMap: " + cur);
543 throw new IllegalArgumentException("Duplicate key in ArrayMap: " + cur);
553 public void putAll(ArrayMap<? extends K, ? extends V> array) {
773 return ArrayMap.this;