public char remove( short key ) { synchronized( mutex ) { return m.remove( key ); } } public void putAll( Map<? extends Short, ? extends Character> map ) {
/** * Deletes a key/value pair from the map. * * @param key an <code>Object</code> value * @return the removed value, or null if it was not found in the map */ public Character remove( Object key ) { short k; if ( key != null ) { if ( key instanceof Short ) { k = unwrapKey( key ); } else { return null; } } else { k = _map.getNoEntryKey(); } char v = _map.remove( k ); // There may be a false positive since primitive maps // cannot return null, so we have to do an extra // check here. if ( v == _map.getNoEntryValue() ) { return null; } else { return wrapValue( v ); } }
public char remove( short key ) { synchronized( mutex ) { return m.remove( key ); } } public void putAll( Map<? extends Short, ? extends Character> map ) {
@Override public char remove( short key ) { synchronized( mutex ) { return m.remove( key ); } } @Override
public char remove( short key ) { synchronized( mutex ) { return m.remove( key ); } } public void putAll( Map<? extends Short, ? extends Character> map ) {
public char remove( short key ) { synchronized( mutex ) { return m.remove( key ); } } public void putAll( Map<? extends Short, ? extends Character> map ) {
/** * Deletes a key/value pair from the map. * * @param key an <code>Object</code> value * @return the removed value, or null if it was not found in the map */ @Override public Character remove( Object key ) { if (! (key instanceof Short ) ) { return null; } short k = unwrapKey( key ); if ( _map.containsKey( k ) ) { char v = _map.remove( k ); return wrapValue( v ); } return null; }
/** * Deletes a key/value pair from the map. * * @param key an <code>Object</code> value * @return the removed value, or null if it was not found in the map */ public Character remove( Object key ) { short k; if ( key != null ) { if ( key instanceof Short ) { k = unwrapKey( key ); } else { return null; } } else { k = _map.getNoEntryKey(); } char v = _map.remove( k ); // There may be a false positive since primitive maps // cannot return null, so we have to do an extra // check here. if ( v == _map.getNoEntryValue() ) { return null; } else { return wrapValue( v ); } }
/** * Deletes a key/value pair from the map. * * @param key an <code>Object</code> value * @return the removed value, or null if it was not found in the map */ public Character remove( Object key ) { short k; if ( key != null ) { if ( key instanceof Short ) { k = unwrapKey( key ); } else { return null; } } else { k = _map.getNoEntryKey(); } char v = _map.remove( k ); // There may be a false positive since primitive maps // cannot return null, so we have to do an extra // check here. if ( v == _map.getNoEntryValue() ) { return null; } else { return wrapValue( v ); } }
/** * Deletes a key/value pair from the map. * * @param key an <code>Object</code> value * @return the removed value, or null if it was not found in the map */ public Character remove( Object key ) { short k; if ( key != null ) { if ( key instanceof Short ) { k = unwrapKey( key ); } else { return null; } } else { k = _map.getNoEntryKey(); } char v = _map.remove( k ); // There may be a false positive since primitive maps // cannot return null, so we have to do an extra // check here. if ( v == _map.getNoEntryValue() ) { return null; } else { return wrapValue( v ); } }