Lines Matching refs:map

30  * avoid having to create an extra object for every entry put in to the map, and it
33 * a hash map).
235 * Create a new empty ArrayMap. The default capacity of an array map is 0, and
269 public ArrayMap(ArrayMap<K, V> map) {
271 if (map != null) {
272 putAll(map);
277 * Make the array map empty. All storage is released.
305 * Ensure the array map can hold at least <var>minimumCapacity</var>
417 * Return true if the array map contains no items.
425 * Add a new value to the array map.
513 * an array map where the same key appears multiple times. This function verifies that
514 * the array map is valid, throwing IllegalArgumentException if a problem is found. The
515 * main use for this method is validating an array map after unpacking from an IPC, to
570 * Remove an existing key from the array map.
642 * Return the number of items in this array map.
652 * <p>This implementation returns false if the object is not a map, or
653 * if the maps have different sizes. Otherwise, for each key in this map,
663 Map<?, ?> map = (Map<?, ?>) object;
664 if (size() != map.size()) {
672 Object theirs = map.get(key);
674 if (theirs != null || !map.containsKey(key)) {
710 * this map contains itself as a key or a value, the string "(this Map)"
801 * Determine if the array map contains all of the keys in the given collection.
803 * @return Returns true if this array map contains a key for every entry
811 * Perform a {@link #put(Object, Object)} of all key/value pairs in <var>map</var>
812 * @param map The map whose contents are to be retrieved.
815 public void putAll(Map<? extends K, ? extends V> map) {
816 ensureCapacity(mSize + map.size());
817 for (Map.Entry<? extends K, ? extends V> entry : map.entrySet()) {
823 * Remove all keys in the array map that exist in the given collection.
825 * @return Returns true if any keys were removed from the array map, else false.
832 * Remove all keys in the array map that do <b>not</b> exist in the given collection.
835 * @return Returns true if any keys were removed from the array map, else false.
843 * in the array map.
862 * in the array map.
875 * in the array map.