public byte put( long key, byte value ) { synchronized( mutex ) { return m.put( key, value ); } } public byte remove( long 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 Byte(0) if none was found. */ public Byte put( Long key, Byte value ) { long k; byte v; if ( key == null ) { k = _map.getNoEntryKey(); } else { k = unwrapKey( key ); } if ( value == null ) { v = _map.getNoEntryValue(); } else { v = unwrapValue( value ); } byte retval = _map.put( k, v ); if ( retval == _map.getNoEntryValue() ) { return null; } return wrapValue( retval ); }
public byte put( long key, byte value ) { synchronized( mutex ) { return m.put( key, value ); } } public byte remove( long key ) {
@Override public byte put( long key, byte value ) { synchronized( mutex ) { return m.put( key, value ); } } @Override
public byte put( long key, byte value ) { synchronized( mutex ) { return m.put( key, value ); } } public byte remove( long key ) {
public byte put( long key, byte value ) { synchronized( mutex ) { return m.put( key, value ); } } public byte remove( long 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 Byte(0) if none was found. */ @Override public Byte put( Long key, Byte value ) { long k = unwrapKey( key ); byte v = unwrapValue( value ); if ( _map.containsKey( k ) ) { byte 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 Byte(0) if none was found. */ public Byte put( Long key, Byte value ) { long k; byte v; if ( key == null ) { k = _map.getNoEntryKey(); } else { k = unwrapKey( key ); } if ( value == null ) { v = _map.getNoEntryValue(); } else { v = unwrapValue( value ); } byte 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 Byte(0) if none was found. */ public Byte put( Long key, Byte value ) { long k; byte v; if ( key == null ) { k = _map.getNoEntryKey(); } else { k = unwrapKey( key ); } if ( value == null ) { v = _map.getNoEntryValue(); } else { v = unwrapValue( value ); } byte 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 Byte(0) if none was found. */ public Byte put( Long key, Byte value ) { long k; byte v; if ( key == null ) { k = _map.getNoEntryKey(); } else { k = unwrapKey( key ); } if ( value == null ) { v = _map.getNoEntryValue(); } else { v = unwrapValue( value ); } byte retval = _map.put( k, v ); if ( retval == _map.getNoEntryValue() ) { return null; } return wrapValue( retval ); }