public int getNoEntryKey() { return m.getNoEntryKey(); }
public int getNoEntryKey() { return m.getNoEntryKey(); }
/** * Checks for the present of <tt>key</tt> in the keys of the map. * * @param key an <code>Object</code> value * @return a <code>boolean</code> value */ public boolean containsKey( Object key ) { if ( key == null ) return _map.containsKey( _map.getNoEntryKey() ); return key instanceof Integer && _map.containsKey( ( ( Integer ) key ).intValue() ); }
/** * Creates a new <code>TIntObjectHashMap</code> that contains the entries * in the map passed to it. * * @param map the <tt>TIntObjectMap</tt> to be copied. */ public TIntObjectHashMap( TIntObjectMap<? extends V> map ) { this( map.size(), 0.5f, map.getNoEntryKey() ); putAll( map ); }
/** * Inserts a key/value pair into the map. * * @param key an <code>Integer</code> value * @param value an <code>Object</code> value * @return the previous value associated with <tt>key</tt>, * or <tt>null</tt> if none was found. */ public V put( Integer key, V value ) { int k; if ( key == null ) { k = _map.getNoEntryKey(); } else { k = unwrapKey( key ); } return _map.put( k, value ); }
/** * Retrieves the value for <tt>key</tt> * * @param key an <code>Object</code> value * @return the value of <tt>key</tt> or null if no such mapping exists. */ public V get( Object key ) { int k; if ( key != null ) { if ( key instanceof Integer ) { k = unwrapKey( ( Integer ) key ); } else { return null; } } else { k = _map.getNoEntryKey(); } return _map.get( k ); }
/** * Deletes a key/value pair from the map. * * @param key an <code>Object</code> value * @return the removed value, or Integer(0) if it was not found in the map */ public V remove( Object key ) { int k; if ( key != null ) { if ( key instanceof Integer ) { k = unwrapKey( ( Integer ) key ); } else { return null; } } else { k = _map.getNoEntryKey(); } return _map.remove( k ); }
public int getNoEntryKey() { return m.getNoEntryKey(); }
public int getNoEntryKey() { return m.getNoEntryKey(); }
@Override public int getNoEntryKey() { return m.getNoEntryKey(); }
@Override public int getNoEntryKey() { return m.getNoEntryKey(); }
public int getNoEntryKey() { return m.getNoEntryKey(); }
/** * Checks for the present of <tt>key</tt> in the keys of the map. * * @param key an <code>Object</code> value * @return a <code>boolean</code> value */ public boolean containsKey( Object key ) { if ( key == null ) return _map.containsKey( _map.getNoEntryKey() ); return key instanceof Integer && _map.containsKey( ( ( Integer ) key ).intValue() ); }
/** * Checks for the present of <tt>key</tt> in the keys of the map. * * @param key an <code>Object</code> value * @return a <code>boolean</code> value */ public boolean containsKey( Object key ) { if ( key == null ) return _map.containsKey( _map.getNoEntryKey() ); return key instanceof Integer && _map.containsKey( ( ( Integer ) key ).intValue() ); }
/** * Checks for the present of <tt>key</tt> in the keys of the map. * * @param key an <code>Object</code> value * @return a <code>boolean</code> value */ public boolean containsKey( Object key ) { if ( key == null ) return _map.containsKey( _map.getNoEntryKey() ); return key instanceof Integer && _map.containsKey( ( ( Integer ) key ).intValue() ); }
/** * Creates a new <code>TIntObjectHashMap</code> that contains the entries * in the map passed to it. * * @param map the <tt>TIntObjectMap</tt> to be copied. */ public TIntObjectHashMap( TIntObjectMap<? extends V> map ) { this( map.size(), 0.5f, map.getNoEntryKey() ); putAll( map ); }
/** * Creates a new <code>TIntObjectHashMap</code> that contains the entries * in the map passed to it. * * @param map the <tt>TIntObjectMap</tt> to be copied. */ public TIntObjectHashMap( TIntObjectMap<? extends V> map ) { this( map.size(), 0.5f, map.getNoEntryKey() ); putAll( map ); }
/** * Creates a new <code>TIntObjectHashMap</code> that contains the entries * in the map passed to it. * * @param map the <tt>TIntObjectMap</tt> to be copied. */ public TIntObjectHashMap( TIntObjectMap<? extends V> map ) { this( map.size(), 0.5f, map.getNoEntryKey() ); putAll( map ); }
/** * Creates a new <code>TIntObjectHashMap</code> that contains the entries * in the map passed to it. * * @param map the <tt>TIntObjectMap</tt> to be copied. */ public TIntObjectHashMap( TIntObjectMap<V> map ) { this( map.size(), 0.5f, map.getNoEntryKey() ); putAll( map ); }
/** * Deletes a key/value pair from the map. * * @param key an <code>Object</code> value * @return the removed value, or Integer(0) if it was not found in the map */ public V remove( Object key ) { int k; if ( key != null ) { if ( key instanceof Integer ) { k = unwrapKey( ( Integer ) key ); } else { return null; } } else { k = _map.getNoEntryKey(); } return _map.remove( k ); }