/** * Creates a new <code>TLongDoubleHashMap</code> instance containing * all of the entries in the map passed in. * * @param keys a <tt>long</tt> array containing the keys for the matching values. * @param values a <tt>double</tt> array containing the values. */ public TLongDoubleHashMap( long[] keys, double[] 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 Long, ? extends Double> map ) { ensureCapacity( map.size() ); // could optimize this for cases when map instanceof THashMap for ( Map.Entry<? extends Long, ? extends Double> entry : map.entrySet() ) { this.put( entry.getKey().longValue(), entry.getValue().doubleValue() ); } }
/** {@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) { long key = in.readLong(); double val = in.readDouble(); put(key, val); } } } // TLongDoubleHashMap
/** {@inheritDoc} */ public void putAll( TLongDoubleMap map ) { ensureCapacity( map.size() ); TLongDoubleIterator iter = map.iterator(); while ( iter.hasNext() ) { iter.advance(); this.put( iter.key(), iter.value() ); } }
/** * Creates a new <code>TLongDoubleHashMap</code> instance containing * all of the entries in the map passed in. * * @param keys a <tt>long</tt> array containing the keys for the matching values. * @param values a <tt>double</tt> array containing the values. */ public TLongDoubleHashMap( long[] keys, double[] 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>TLongDoubleHashMap</code> instance containing * all of the entries in the map passed in. * * @param keys a <tt>long</tt> array containing the keys for the matching values. * @param values a <tt>double</tt> array containing the values. */ public TLongDoubleHashMap( long[] keys, double[] 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>TLongDoubleHashMap</code> instance containing * all of the entries in the map passed in. * * @param keys a <tt>long</tt> array containing the keys for the matching values. * @param values a <tt>double</tt> array containing the values. */ public TLongDoubleHashMap( long[] keys, double[] 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>TLongDoubleHashMap</code> instance containing * all of the entries in the map passed in. * * @param keys a <tt>long</tt> array containing the keys for the matching values. * @param values a <tt>double</tt> array containing the values. */ public TLongDoubleHashMap( long[] keys, double[] 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 Long, ? extends Double> map ) { ensureCapacity( map.size() ); // could optimize this for cases when map instanceof THashMap for ( Map.Entry<? extends Long, ? extends Double> entry : map.entrySet() ) { this.put( entry.getKey().longValue(), entry.getValue().doubleValue() ); } }
/** {@inheritDoc} */ @Override public void putAll( Map<? extends Long, ? extends Double> map ) { ensureCapacity( map.size() ); // could optimize this for cases when map instanceof THashMap for ( Map.Entry<? extends Long, ? extends Double> entry : map.entrySet() ) { this.put( entry.getKey().longValue(), entry.getValue().doubleValue() ); } }
/** {@inheritDoc} */ public void putAll( Map<? extends Long, ? extends Double> map ) { ensureCapacity( map.size() ); // could optimize this for cases when map instanceof THashMap for ( Map.Entry<? extends Long, ? extends Double> entry : map.entrySet() ) { this.put( entry.getKey().longValue(), entry.getValue().doubleValue() ); } }
/** {@inheritDoc} */ public void putAll( Map<? extends Long, ? extends Double> map ) { ensureCapacity( map.size() ); // could optimize this for cases when map instanceof THashMap for ( Map.Entry<? extends Long, ? extends Double> entry : map.entrySet() ) { this.put( entry.getKey().longValue(), entry.getValue().doubleValue() ); } }
/** {@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) { long key = in.readLong(); double val = in.readDouble(); put(key, val); } } } // TLongDoubleHashMap
/** {@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) { long key = in.readLong(); double val = in.readDouble(); put(key, val); } } } // TLongDoubleHashMap
/** {@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) { long key = in.readLong(); double val = in.readDouble(); put(key, val); } } } // TLongDoubleHashMap
/** {@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) { long key = in.readLong(); double val = in.readDouble(); put(key, val); } } } // TLongDoubleHashMap
/** {@inheritDoc} */ public void putAll( TLongDoubleMap map ) { ensureCapacity( map.size() ); TLongDoubleIterator iter = map.iterator(); while ( iter.hasNext() ) { iter.advance(); this.put( iter.key(), iter.value() ); } }
/** {@inheritDoc} */ public void putAll( TLongDoubleMap map ) { ensureCapacity( map.size() ); TLongDoubleIterator iter = map.iterator(); while ( iter.hasNext() ) { iter.advance(); this.put( iter.key(), iter.value() ); } }
/** {@inheritDoc} */ @Override public void putAll( TLongDoubleMap map ) { ensureCapacity( map.size() ); TLongDoubleIterator iter = map.iterator(); while ( iter.hasNext() ) { iter.advance(); this.put( iter.key(), iter.value() ); } }
/** {@inheritDoc} */ public void putAll( TLongDoubleMap map ) { ensureCapacity( map.size() ); TLongDoubleIterator iter = map.iterator(); while ( iter.hasNext() ) { iter.advance(); this.put( iter.key(), iter.value() ); } }