public char put( short key, char value ) { synchronized( mutex ) { return m.put( key, value ); } } public char remove( short key ) {
/** * Inserts a key/value pair into the map. * * @param key an <code>Object</code> value * @param value an <code>Object</code> value * @return the previous value associated with <tt>key</tt>, * or Character(0) if none was found. */ public Character put( Short key, Character value ) { short k; char v; if ( key == null ) { k = _map.getNoEntryKey(); } else { k = unwrapKey( key ); } if ( value == null ) { v = _map.getNoEntryValue(); } else { v = unwrapValue( value ); } char retval = _map.put( k, v ); if ( retval == _map.getNoEntryValue() ) { return null; } return wrapValue( retval ); }
@Override public char put( short key, char value ) { synchronized( mutex ) { return m.put( key, value ); } } @Override
public char put( short key, char value ) { synchronized( mutex ) { return m.put( key, value ); } } public char remove( short key ) {
public char put( short key, char value ) { synchronized( mutex ) { return m.put( key, value ); } } public char remove( short key ) {
public char put( short key, char value ) { synchronized( mutex ) { return m.put( key, value ); } } public char remove( short key ) {
/** * Inserts a key/value pair into the map. * * @param key an <code>Object</code> value * @param value an <code>Object</code> value * @return the previous value associated with <tt>key</tt>, * or Character(0) if none was found. */ @Override public Character put( Short key, Character value ) { short k = unwrapKey( key ); char v = unwrapValue( value ); if ( _map.containsKey( k ) ) { char retval = _map.put( k, v ); return wrapValue( retval); } _map.put( k, v ); return null; }
/** * Inserts a key/value pair into the map. * * @param key an <code>Object</code> value * @param value an <code>Object</code> value * @return the previous value associated with <tt>key</tt>, * or Character(0) if none was found. */ public Character put( Short key, Character value ) { short k; char v; if ( key == null ) { k = _map.getNoEntryKey(); } else { k = unwrapKey( key ); } if ( value == null ) { v = _map.getNoEntryValue(); } else { v = unwrapValue( value ); } char retval = _map.put( k, v ); if ( retval == _map.getNoEntryValue() ) { return null; } return wrapValue( retval ); }
/** * Inserts a key/value pair into the map. * * @param key an <code>Object</code> value * @param value an <code>Object</code> value * @return the previous value associated with <tt>key</tt>, * or Character(0) if none was found. */ public Character put( Short key, Character value ) { short k; char v; if ( key == null ) { k = _map.getNoEntryKey(); } else { k = unwrapKey( key ); } if ( value == null ) { v = _map.getNoEntryValue(); } else { v = unwrapValue( value ); } char retval = _map.put( k, v ); if ( retval == _map.getNoEntryValue() ) { return null; } return wrapValue( retval ); }
/** * Inserts a key/value pair into the map. * * @param key an <code>Object</code> value * @param value an <code>Object</code> value * @return the previous value associated with <tt>key</tt>, * or Character(0) if none was found. */ public Character put( Short key, Character value ) { short k; char v; if ( key == null ) { k = _map.getNoEntryKey(); } else { k = unwrapKey( key ); } if ( value == null ) { v = _map.getNoEntryValue(); } else { v = unwrapValue( value ); } char retval = _map.put( k, v ); if ( retval == _map.getNoEntryValue() ) { return null; } return wrapValue( retval ); }