
com.nostra13.universalimageloader.cache.memory.impl.WeakMemoryCache Maven / Gradle / Ivy
package com.nostra13.universalimageloader.cache.memory.impl;
import java.lang.ref.Reference;
import java.lang.ref.WeakReference;
import android.graphics.Bitmap;
import com.nostra13.universalimageloader.cache.memory.BaseMemoryCache;
/**
* Memory cache with {@linkplain WeakReference weak references} to {@linkplain android.graphics.Bitmap bitmaps}
*
* @author Sergey Tarasevich (nostra13[at]gmail[dot]com)
*/
public class WeakMemoryCache extends BaseMemoryCache {
@Override
protected Reference createReference(Bitmap value) {
return new WeakReference(value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy