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