xUtils源码阅读(4)-MemCacheKey
来源:互联网 发布:清穿记事知华年 编辑:程序博客网 时间:2024/06/11 21:06
该类通过图片的url和显示参数,生成hashcode以供使用。
功能简单,单一。
源码:
/** * Created by wyouflf on 15/10/20. *//*package*/ final class MemCacheKey { public final String url; public final ImageOptions options; public MemCacheKey(String url, ImageOptions options) { this.url = url; this.options = options; } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; MemCacheKey that = (MemCacheKey) o; if (!url.equals(that.url)) return false; return options.equals(that.options); } @Override public int hashCode() { int result = url.hashCode(); result = 31 * result + options.hashCode(); return result; } @Override public String toString() { return url + options.toString(); }}
0 0
- xUtils源码阅读(4)-MemCacheKey
- xUtils源码阅读(1)- x
- xUtils源码阅读(3)-ImageManagerImpl
- xUtils源码阅读(5)-ReuseableBitmapDrawable
- xUtils源码阅读(6)-AsyncDrawable
- xUtils源码阅读(7)-GitDrawable
- xUtils源码阅读(8)-ImageDecoder
- xUtils源码阅读(2)-ImageManager
- struts1源码阅读(4)
- XUtils源码分析之HttpUtils(一)
- xUtils 源码解析
- xUtils 源码解析
- xUtils 源码解析
- xUtils 源码解析
- xUtils 源码解析
- XUtils 源码解析
- xUtils 源码解析
- Eclipse 导入 xUtils 源码
- es5 forEach 和 map 方法使用
- 常见排序算法汇总与分析(下)(基数排序与计数排序)
- Qt之操作Excel
- windows下面的清屏
- Qt Modify the form size change control position
- xUtils源码阅读(4)-MemCacheKey
- LIB和DLL的区别与使用
- brew install tmux: Error: parent directory is world writable but not sticky
- hue的安装与使用
- 关于POSIX
- 限制swing中的JTextField只能输入中文,字母,数字。
- 保存图片
- 用ASP.NET Web API技术开发HTTP接口(二)
- 常见的网站攻击方式和防护方式