/** * Replace the value of the mapping at the iterator's position with the specified value. Note * that you must <tt>advance()</tt> the iterator at least once before invoking this method. * * @param val the value to set in the current entry * @return the old value of the entry. */ public int setValue(int val) { int old = value(); _map._values[_index] = val; return old; } }// TObjectIntIterator
/** * Copies all of the mappings from the specified map to this map These mappings will replace any * mappings that this map had for any of the keys currently in the specified map. * * @param map mappings to be stored in this map. * @throws NullPointerException if the specified map is null. */ public void putAll(TObjectIntHashMap<K> map) { for (TObjectIntIterator<K> it = map.iterator(); it.hasNext(); ) { put(it.key(), it.value()); } }