public long remove( long key ) { synchronized( mutex ) { return m.remove( key ); } } public void putAll( Map<? extends Long, ? extends Long> 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 Long remove( Object key ) { long k; if ( key != null ) { if ( key instanceof Long ) { k = unwrapKey( key ); } else { return null; } } else { k = _map.getNoEntryKey(); } long 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 void onMemberChunk(long id, JSONArray chunk) { log.debug("Received member chunk for guild id: {} size: {}", id, chunk.length()); synchronized (pendingChunks) { pendingChunks.remove(id); } GuildSetupNode node = setupNodes.get(id); if (node != null) node.handleMemberChunk(chunk); }
public long remove( long key ) { synchronized( mutex ) { return m.remove( key ); } } public void putAll( Map<? extends Long, ? extends Long> map ) {
@Override public long remove( long key ) { synchronized( mutex ) { return m.remove( key ); } } @Override
public long remove( long key ) { synchronized( mutex ) { return m.remove( key ); } } public void putAll( Map<? extends Long, ? extends Long> map ) {
public long remove( long key ) { synchronized( mutex ) { return m.remove( key ); } } public void putAll( Map<? extends Long, ? extends Long> 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 Long remove( Object key ) { if (! (key instanceof Long ) ) { return null; } long k = unwrapKey( key ); if ( _map.containsKey( k ) ) { long 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 Long remove( Object key ) { long k; if ( key != null ) { if ( key instanceof Long ) { k = unwrapKey( key ); } else { return null; } } else { k = _map.getNoEntryKey(); } long 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 Long remove( Object key ) { long k; if ( key != null ) { if ( key instanceof Long ) { k = unwrapKey( key ); } else { return null; } } else { k = _map.getNoEntryKey(); } long 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 Long remove( Object key ) { long k; if ( key != null ) { if ( key instanceof Long ) { k = unwrapKey( key ); } else { return null; } } else { k = _map.getNoEntryKey(); } long 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 ); } }