/** * Creates a new <code>TDoubleIntHashMap</code> instance containing * all of the entries in the map passed in. * * @param keys a <tt>double</tt> array containing the keys for the matching values. * @param values a <tt>int</tt> array containing the values. */ public TDoubleIntHashMap( double[] keys, int[] values ) { super( Math.max( keys.length, values.length ) ); int size = Math.min( keys.length, values.length ); for ( int i = 0; i < size; i++ ) { this.put( keys[i], values[i] ); } }
/** {@inheritDoc} */ public void putAll( Map<? extends Double, ? extends Integer> map ) { ensureCapacity( map.size() ); // could optimize this for cases when map instanceof THashMap for ( Map.Entry<? extends Double, ? extends Integer> entry : map.entrySet() ) { this.put( entry.getKey().doubleValue(), entry.getValue().intValue() ); } }
/** {@inheritDoc} */ public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { // VERSION in.readByte(); // SUPER super.readExternal( in ); // NUMBER OF ENTRIES int size = in.readInt(); setUp( size ); // ENTRIES while (size-- > 0) { double key = in.readDouble(); int val = in.readInt(); put(key, val); } } } // TDoubleIntHashMap
/** {@inheritDoc} */ public void putAll( TDoubleIntMap map ) { ensureCapacity( map.size() ); TDoubleIntIterator iter = map.iterator(); while ( iter.hasNext() ) { iter.advance(); this.put( iter.key(), iter.value() ); } }
/** * Creates a new <code>TDoubleIntHashMap</code> instance containing * all of the entries in the map passed in. * * @param keys a <tt>double</tt> array containing the keys for the matching values. * @param values a <tt>int</tt> array containing the values. */ public TDoubleIntHashMap( double[] keys, int[] values ) { super( Math.max( keys.length, values.length ) ); int size = Math.min( keys.length, values.length ); for ( int i = 0; i < size; i++ ) { this.put( keys[i], values[i] ); } }
/** * Creates a new <code>TDoubleIntHashMap</code> instance containing * all of the entries in the map passed in. * * @param keys a <tt>double</tt> array containing the keys for the matching values. * @param values a <tt>int</tt> array containing the values. */ public TDoubleIntHashMap( double[] keys, int[] values ) { super( Math.max( keys.length, values.length ) ); int size = Math.min( keys.length, values.length ); for ( int i = 0; i < size; i++ ) { this.put( keys[i], values[i] ); } }
/** * Creates a new <code>TDoubleIntHashMap</code> instance containing * all of the entries in the map passed in. * * @param keys a <tt>double</tt> array containing the keys for the matching values. * @param values a <tt>int</tt> array containing the values. */ public TDoubleIntHashMap( double[] keys, int[] values ) { super( Math.max( keys.length, values.length ) ); int size = Math.min( keys.length, values.length ); for ( int i = 0; i < size; i++ ) { this.put( keys[i], values[i] ); } }
/** * Creates a new <code>TDoubleIntHashMap</code> instance containing * all of the entries in the map passed in. * * @param keys a <tt>double</tt> array containing the keys for the matching values. * @param values a <tt>int</tt> array containing the values. */ public TDoubleIntHashMap( double[] keys, int[] values ) { super( Math.max( keys.length, values.length ) ); int size = Math.min( keys.length, values.length ); for ( int i = 0; i < size; i++ ) { this.put( keys[i], values[i] ); } }
/** {@inheritDoc} */ public void putAll( Map<? extends Double, ? extends Integer> map ) { ensureCapacity( map.size() ); // could optimize this for cases when map instanceof THashMap for ( Map.Entry<? extends Double, ? extends Integer> entry : map.entrySet() ) { this.put( entry.getKey().doubleValue(), entry.getValue().intValue() ); } }
/** {@inheritDoc} */ @Override public void putAll( Map<? extends Double, ? extends Integer> map ) { ensureCapacity( map.size() ); // could optimize this for cases when map instanceof THashMap for ( Map.Entry<? extends Double, ? extends Integer> entry : map.entrySet() ) { this.put( entry.getKey().doubleValue(), entry.getValue().intValue() ); } }
/** {@inheritDoc} */ public void putAll( Map<? extends Double, ? extends Integer> map ) { ensureCapacity( map.size() ); // could optimize this for cases when map instanceof THashMap for ( Map.Entry<? extends Double, ? extends Integer> entry : map.entrySet() ) { this.put( entry.getKey().doubleValue(), entry.getValue().intValue() ); } }
/** {@inheritDoc} */ public void putAll( Map<? extends Double, ? extends Integer> map ) { ensureCapacity( map.size() ); // could optimize this for cases when map instanceof THashMap for ( Map.Entry<? extends Double, ? extends Integer> entry : map.entrySet() ) { this.put( entry.getKey().doubleValue(), entry.getValue().intValue() ); } }
/** {@inheritDoc} */ public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { // VERSION in.readByte(); // SUPER super.readExternal( in ); // NUMBER OF ENTRIES int size = in.readInt(); setUp( size ); // ENTRIES while (size-- > 0) { double key = in.readDouble(); int val = in.readInt(); put(key, val); } } } // TDoubleIntHashMap
/** {@inheritDoc} */ public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { // VERSION in.readByte(); // SUPER super.readExternal( in ); // NUMBER OF ENTRIES int size = in.readInt(); setUp( size ); // ENTRIES while (size-- > 0) { double key = in.readDouble(); int val = in.readInt(); put(key, val); } } } // TDoubleIntHashMap
/** {@inheritDoc} */ public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { // VERSION in.readByte(); // SUPER super.readExternal( in ); // NUMBER OF ENTRIES int size = in.readInt(); setUp( size ); // ENTRIES while (size-- > 0) { double key = in.readDouble(); int val = in.readInt(); put(key, val); } } } // TDoubleIntHashMap
/** {@inheritDoc} */ @Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { // VERSION in.readByte(); // SUPER super.readExternal( in ); // NUMBER OF ENTRIES int size = in.readInt(); setUp( size ); // ENTRIES while (size-- > 0) { double key = in.readDouble(); int val = in.readInt(); put(key, val); } } } // TDoubleIntHashMap
/** {@inheritDoc} */ public void putAll( TDoubleIntMap map ) { ensureCapacity( map.size() ); TDoubleIntIterator iter = map.iterator(); while ( iter.hasNext() ) { iter.advance(); this.put( iter.key(), iter.value() ); } }
/** {@inheritDoc} */ public void putAll( TDoubleIntMap map ) { ensureCapacity( map.size() ); TDoubleIntIterator iter = map.iterator(); while ( iter.hasNext() ) { iter.advance(); this.put( iter.key(), iter.value() ); } }
/** {@inheritDoc} */ @Override public void putAll( TDoubleIntMap map ) { ensureCapacity( map.size() ); TDoubleIntIterator iter = map.iterator(); while ( iter.hasNext() ) { iter.advance(); this.put( iter.key(), iter.value() ); } }
/** {@inheritDoc} */ public void putAll( TDoubleIntMap map ) { ensureCapacity( map.size() ); TDoubleIntIterator iter = map.iterator(); while ( iter.hasNext() ) { iter.advance(); this.put( iter.key(), iter.value() ); } }