/** {@inheritDoc} */ public boolean containsKey( short key ) { return contains( key ); }
class TShortObjectHashIterator<V> extends THashPrimitiveIterator implements TShortObjectIterator<V> { /** the collection being iterated over */ private final TShortObjectHashMap<V> _map; /** * Creates an iterator over the specified map * * @param map map to iterate over. */ public TShortObjectHashIterator( TShortObjectHashMap<V> map ) { super( map ); this._map = map; } /** {@inheritDoc} */ public void advance() { moveToNextIndex(); } /** {@inheritDoc} */ public short key() { return _map._set[_index]; } /** {@inheritDoc} */ public V value() { return _map._values[_index]; }
/** {@inheritDoc} */ public boolean containsKey( short key ) { return contains( key ); }
/** {@inheritDoc} */ @Override public boolean containsKey( short key ) { return contains( key ); }
/** {@inheritDoc} */ public boolean containsKey( short key ) { return contains( key ); }
/** {@inheritDoc} */ public boolean containsKey( short key ) { return contains( key ); }
class TShortObjectHashIterator<V> extends THashPrimitiveIterator implements TShortObjectIterator<V> { /** the collection being iterated over */ private final TShortObjectHashMap<V> _map; /** * Creates an iterator over the specified map * * @param map map to iterate over. */ public TShortObjectHashIterator( TShortObjectHashMap<V> map ) { super( map ); this._map = map; } /** {@inheritDoc} */ public void advance() { moveToNextIndex(); } /** {@inheritDoc} */ public short key() { return _map._set[_index]; } /** {@inheritDoc} */ public V value() { return _map._values[_index]; }
class TShortObjectHashIterator<V> extends THashPrimitiveIterator implements TShortObjectIterator<V> { /** the collection being iterated over */ private final TShortObjectHashMap<V> _map; /** * Creates an iterator over the specified map * * @param map map to iterate over. */ public TShortObjectHashIterator( TShortObjectHashMap<V> map ) { super( map ); this._map = map; } /** {@inheritDoc} */ public void advance() { moveToNextIndex(); } /** {@inheritDoc} */ public short key() { return _map._set[_index]; } /** {@inheritDoc} */ public V value() { return _map._values[_index]; }
class TShortObjectHashIterator<V> extends THashPrimitiveIterator implements TShortObjectIterator<V> { /** the collection being iterated over */ private final TShortObjectHashMap<V> _map; /** * Creates an iterator over the specified map * * @param map map to iterate over. */ public TShortObjectHashIterator( TShortObjectHashMap<V> map ) { super( map ); this._map = map; } /** {@inheritDoc} */ public void advance() { moveToNextIndex(); } /** {@inheritDoc} */ public short key() { return _map._set[_index]; } /** {@inheritDoc} */ public V value() { return _map._values[_index]; }
Iterator<E> i = iterator(); while ( i.hasNext() ) { if ( !collection.contains( i.next() ) ) { i.remove(); changed = true;