/** {@inheritDoc} */ public boolean containsKey( Object key ) { return contains( key ); }
class TObjectShortHashIterator<K> extends TObjectHashIterator<K> implements TObjectShortIterator<K> { /** the collection being iterated over */ private final TObjectShortHashMap<K> _map; public TObjectShortHashIterator( TObjectShortHashMap<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 short value() { return _map._values[_index]; } /** {@inheritDoc} */ public short setValue( short val ) { short old = value(); _map._values[_index] = val; return old; } }
/** {@inheritDoc} */ public boolean containsKey( Object key ) { return contains( key ); }
/** {@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 ); }
class TObjectShortHashIterator<K> extends TObjectHashIterator<K> implements TObjectShortIterator<K> { /** the collection being iterated over */ private final TObjectShortHashMap<K> _map; public TObjectShortHashIterator( TObjectShortHashMap<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 short value() { return _map._values[_index]; } /** {@inheritDoc} */ public short setValue( short val ) { short old = value(); _map._values[_index] = val; return old; } }
class TObjectShortHashIterator<K> extends TObjectHashIterator<K> implements TObjectShortIterator<K> { /** the collection being iterated over */ private final TObjectShortHashMap<K> _map; public TObjectShortHashIterator( TObjectShortHashMap<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 short value() { return _map._values[_index]; } /** {@inheritDoc} */ public short setValue( short val ) { short old = value(); _map._values[_index] = val; return old; } }
class TObjectShortHashIterator<K> extends TObjectHashIterator<K> implements TObjectShortIterator<K> { /** the collection being iterated over */ private final TObjectShortHashMap<K> _map; public TObjectShortHashIterator( TObjectShortHashMap<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 short value() { return _map._values[_index]; } /** {@inheritDoc} */ public short setValue( short val ) { short old = value(); _map._values[_index] = val; return old; } }
Iterator<E> i = iterator(); while ( i.hasNext() ) { if ( !collection.contains( i.next() ) ) { i.remove(); changed = true;