Code example for LruCache

Methods: remove

0
        if (null == packageName) return null;
        return sCache.get(packageName);
    } 
 
    public static void removeCachedPackageInfo(final String packageName) {
        sCache.remove(packageName);
    } 
 
    public interface OnTargetPackageInfoKnownListener { 
        public void onTargetPackageInfoKnown(final PackageInfo info);
    } 
 
    private Context mContext;
    private final OnTargetPackageInfoKnownListener mListener;
 
    public TargetPackageInfoGetterTask(final Context context,
            final OnTargetPackageInfoKnownListener listener) {
        mContext = context;
        mListener = listener;
    }