app/src/main/java/com/yahala/messenger/LruCache.java
/**
     * Caches {@code value} for {@code key}. The value is moved to the head of
     * the queue.
     *
     * @return the previous value mapped by {@code key}.
     */
Caches  value for  key. The value is moved to the head of
the queue.

@return the previous value mapped by  key.
Caches value for key . The value is moved to the head of the queue . @return the previous value mapped by key .
public Bitmap put(String key, Bitmap value) {
        if (key == null || value == null) {
            throw new NullPointerException("key == null || value == null");
        }
        Bitmap previous;
        synchronized (this) {
            putCount++;
            size += safeSizeOf(key, value);
            previous = map.put(key, value);
            if (previous != null) {
                size -= safeSizeOf(key, previous);
            }
        }
        String[] args = key.split("@");
        if (args.length > 1) {
            ArrayList<String> arr = mapFilters.get(args[0]);
            if (arr == null) {
                arr = new ArrayList<String>();
                mapFilters.put(args[0], arr);
            }
            arr.add(args[1]);
        }
        if (previous != null) {
            entryRemoved(false, key, previous, value);
        }
        trimToSize(maxSize);
        return previous;
    }
public Bitmap put ( String key , Bitmap value ) { if ( key == null || value == null ) { throw new NullPointerException ( "key == null || value == null" ) ; } Bitmap previous ; synchronized ( this ) { putCount ++ ; size += safeSizeOf ( key , value ) ; previous = map . put ( key , value ) ; if ( previous != null ) { size -= safeSizeOf ( key , previous ) ; } } String [ ] args = key . split ( "@" ) ; if ( args . length > 1 ) { ArrayList < String > arr = mapFilters . get ( args [ 0 ] ) ; if ( arr == null ) { arr = new ArrayList < String > ( ) ; mapFilters . put ( args [ 0 ] , arr ) ; } arr . add ( args [ 1 ] ) ; } if ( previous != null ) { entryRemoved ( false , key , previous , value ) ; } trimToSize ( maxSize ) ; return previous ; }
Caches {@code value} for {@code key}.
Caches { @code value } for { @code key } .