/** {@inheritDoc} */ public boolean equals( Object other ) { if ( ! ( other instanceof TFloatObjectMap ) ) { return false; } TFloatObjectMap that = ( TFloatObjectMap ) other; if ( that.size() != this.size() ) { return false; } try { TFloatObjectIterator iter = this.iterator(); while ( iter.hasNext() ) { iter.advance(); float key = iter.key(); Object value = iter.value(); if ( value == null ) { if ( !( that.get( key ) == null && that.containsKey( key ) ) ) { return false; } } else { if ( !value.equals( that.get( key ) ) ) { return false; } } } } catch ( ClassCastException ex ) { // unused. } return true; }
/** {@inheritDoc} */ @Override @SuppressWarnings("rawtypes") public boolean equals( Object other ) { if ( ! ( other instanceof TFloatObjectMap ) ) { return false; } TFloatObjectMap that = ( TFloatObjectMap ) other; if ( that.size() != this.size() ) { return false; } try { TFloatObjectIterator iter = this.iterator(); while ( iter.hasNext() ) { iter.advance(); float key = iter.key(); Object value = iter.value(); if ( value == null ) { if ( !( that.get( key ) == null && that.containsKey( key ) ) ) { return false; } } else { if ( !value.equals( that.get( key ) ) ) { return false; } } } } catch ( ClassCastException ex ) { // unused. } return true; }
/** {@inheritDoc} */ public TFloatObjectIterator<V> iterator() { return new TFloatObjectHashIterator<V>( this ); }
/** {@inheritDoc} */ @Override public TFloatObjectIterator<V> iterator() { return new TFloatObjectHashIterator( this ); }
public TFloatObjectIterator<V> iterator() { return container.iterator(); }
public TFloatObjectIterator<String> iterator() { return container.iterator(); }
/** * Returns a <tt>TFloatObjectIterator</tt> with access to this map's keys and values. * * @return a <tt>TFloatObjectIterator</tt> with access to this map's keys and values. */ public TFloatObjectIterator<V> iterator();