文件缓存
2016-03-04 20:50
309 查看
内存缓存:
存
HashMap<String,Bitmap>cache;
Bitmap bitmap;
cache.put(path,bitmap)
取:
cache.get(path)
weakedHashMap<String,xx>map;
while(true){
map.put(xx,xx);
文件缓存:
BitmapUtils{
save(bitmap,targetFile){}
//Bitmap loadBitmap(path){}}
存
HashMap<String,Bitmap>cache;
Bitmap bitmap;
cache.put(path,bitmap)
取:
cache.get(path)
weakedHashMap<String,xx>map;
while(true){
map.put(xx,xx);
文件缓存:
BitmapUtils{
save(bitmap,targetFile){}
//Bitmap loadBitmap(path){}}
相关文章推荐
- next_permutation函数
- 02.Java基础-标识符、关键字、数据类型--01
- Android应用开发相关
- 虚拟机上redhat6安装VMware Tools
- objective -c之分类,协议。
- OC_继承与多态
- DOM操作优化
- typedef的使用2——定义函数
- 一键取消 OS X 开机启动项
- android开发知识转载(长期更新)
- ZOJ 3537 简单凸包+DP
- Android实现界面左右滑动切换
- 极客学院安卓视频零散笔记总结
- hdu1754 I Hate It(线段树点的更新和区间查找)
- EA使用初步
- typedef的使用1——引入
- 记一道智力题
- Caffe
- hdu 1166 线段树(sum+单点修改)
- Codeforces Round #344 (Div. 2) C题数列的前n个数进行m次升降排序