app/src/main/java/com/yahala/messenger/LruCache.java
/**
     * Removes the entry for {@code key} if it exists.
     *
     * @return the previous value mapped by {@code key}.
     */
Removes the entry for  key if it exists.
@return the previous value mapped by  key.
Removes the entry for key if it exists . @return the previous value mapped by key .
public final Bitmap remove(String key) {
        if (key == null) {
            throw new NullPointerException("key == null");
        }
        Bitmap previous;
        synchronized (this) {
            previous = map.remove(key);
            if (previous != null) {
                size -= safeSizeOf(key, previous);
            }
        }
        if (previous != null) {
            String[] args = key.split("@");
            if (args.length > 1) {
                ArrayList<String> arr = mapFilters.get(args[0]);
                if (arr != null) {
                    arr.remove(key);
                    if (arr.isEmpty()) {
                        mapFilters.remove(args[1]);
                    }
                }
            }
            entryRemoved(false, key, previous, null);
        }
        return previous;
    }
public final Bitmap remove ( String key ) { if ( key == null ) { throw new NullPointerException ( "key == null" ) ; } Bitmap previous ; synchronized ( this ) { previous = map . remove ( key ) ; if ( previous != null ) { size -= safeSizeOf ( key , previous ) ; } } if ( previous != null ) { String [ ] args = key . split ( "@" ) ; if ( args . length > 1 ) { ArrayList < String > arr = mapFilters . get ( args [ 0 ] ) ; if ( arr != null ) { arr . remove ( key ) ; if ( arr . isEmpty ( ) ) { mapFilters . remove ( args [ 1 ] ) ; } } } entryRemoved ( false , key , previous , null ) ; } return previous ; }
Removes the entry for {@code key} if it exists.
Removes the entry for { @code key } if it exists .