/** {@inheritDoc} */ public boolean containsKey( Object key ) { return contains( key ); }
class TObjectDoubleHashIterator<K> extends TObjectHashIterator<K> implements TObjectDoubleIterator<K> { /** the collection being iterated over */ private final TObjectDoubleHashMap<K> _map; public TObjectDoubleHashIterator( TObjectDoubleHashMap<K> map ) { super( map ); this._map = map; } /** {@inheritDoc} */ public void advance() { moveToNextIndex(); } /** {@inheritDoc} */ @SuppressWarnings({"unchecked"}) public K key() { return ( K ) _map._set[_index]; } /** {@inheritDoc} */ public double value() { return _map._values[_index]; } /** {@inheritDoc} */ public double setValue( double val ) { double old = value(); _map._values[_index] = val; return old; } }
/** {@inheritDoc} */ @Override public boolean containsKey( Object key ) { return contains( key ); }
/** {@inheritDoc} */ public boolean containsKey( Object key ) { return contains( key ); }
/** {@inheritDoc} */ public boolean containsKey( Object key ) { return contains( key ); }
/** {@inheritDoc} */ public boolean containsKey( Object key ) { return contains( key ); }
class TObjectDoubleHashIterator<K> extends TObjectHashIterator<K> implements TObjectDoubleIterator<K> { /** the collection being iterated over */ private final TObjectDoubleHashMap<K> _map; public TObjectDoubleHashIterator( TObjectDoubleHashMap<K> map ) { super( map ); this._map = map; } /** {@inheritDoc} */ public void advance() { moveToNextIndex(); } /** {@inheritDoc} */ @SuppressWarnings({"unchecked"}) public K key() { return ( K ) _map._set[_index]; } /** {@inheritDoc} */ public double value() { return _map._values[_index]; } /** {@inheritDoc} */ public double setValue( double val ) { double old = value(); _map._values[_index] = val; return old; } }
class TObjectDoubleHashIterator<K> extends TObjectHashIterator<K> implements TObjectDoubleIterator<K> { /** the collection being iterated over */ private final TObjectDoubleHashMap<K> _map; public TObjectDoubleHashIterator( TObjectDoubleHashMap<K> map ) { super( map ); this._map = map; } /** {@inheritDoc} */ public void advance() { moveToNextIndex(); } /** {@inheritDoc} */ @SuppressWarnings({"unchecked"}) public K key() { return ( K ) _map._set[_index]; } /** {@inheritDoc} */ public double value() { return _map._values[_index]; } /** {@inheritDoc} */ public double setValue( double val ) { double old = value(); _map._values[_index] = val; return old; } }
class TObjectDoubleHashIterator<K> extends TObjectHashIterator<K> implements TObjectDoubleIterator<K> { /** the collection being iterated over */ private final TObjectDoubleHashMap<K> _map; public TObjectDoubleHashIterator( TObjectDoubleHashMap<K> map ) { super( map ); this._map = map; } /** {@inheritDoc} */ public void advance() { moveToNextIndex(); } /** {@inheritDoc} */ @SuppressWarnings({"unchecked"}) public K key() { return ( K ) _map._set[_index]; } /** {@inheritDoc} */ public double value() { return _map._values[_index]; } /** {@inheritDoc} */ public double setValue( double val ) { double old = value(); _map._values[_index] = val; return old; } }
public void multiplyInplace(KEY key, double value) { if (paramsMap.contains(key)) { paramsMap.put(key, paramsMap.get(key) * value); } }
public void multiplyInplace(KEY key, double value) { if (paramsMap.contains(key)) { paramsMap.put(key, paramsMap.get(key) * value); } }
Iterator<E> i = iterator(); while ( i.hasNext() ) { if ( !collection.contains( i.next() ) ) { i.remove(); changed = true;