/** * Creates a new <code>TLongObjectHashMap</code> that contains the entries * in the map passed to it. * * @param map the <tt>TLongObjectMap</tt> to be copied. */ public TLongObjectHashMap( TLongObjectMap<? extends V> map ) { this( map.size(), 0.5f, map.getNoEntryKey() ); putAll( map ); }
/** * Creates a new <code>TLongObjectHashMap</code> that contains the entries * in the map passed to it. * * @param map the <tt>TLongObjectMap</tt> to be copied. */ public TLongObjectHashMap( TLongObjectMap<? extends V> map ) { this( map.size(), 0.5f, map.getNoEntryKey() ); putAll( map ); }
/** * Creates a new <code>TLongObjectHashMap</code> that contains the entries * in the map passed to it. * * @param map the <tt>TLongObjectMap</tt> to be copied. */ public TLongObjectHashMap( TLongObjectMap<? extends V> map ) { this( map.size(), 0.5f, map.getNoEntryKey() ); putAll( map ); }
/** * Creates a new <code>TLongObjectHashMap</code> that contains the entries * in the map passed to it. * * @param map the <tt>TLongObjectMap</tt> to be copied. */ public TLongObjectHashMap( TLongObjectMap<V> map ) { this( map.size(), 0.5f, map.getNoEntryKey() ); putAll( map ); }
/** * Creates a new <code>TLongObjectHashMap</code> that contains the entries * in the map passed to it. * * @param map the <tt>TLongObjectMap</tt> to be copied. */ public TLongObjectHashMap( TLongObjectMap<? extends V> map ) { this( map.size(), 0.5f, map.getNoEntryKey() ); putAll( map ); }
public static synchronized void initialize(EntityManager em) { TLongObjectHashMap<Currency> currencies = new TLongObjectHashMap<Currency>(); Query<Currency> q = em.createQuery(Currency.class); Cursor c = q.execute(); try { while (c.moveToNext()) { Currency currency = EntityManager.loadFromCursor(c, Currency.class); currencies.put(currency.id, currency); } } finally { c.close(); } CURRENCIES.putAll(currencies); }