1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
| package cn.sinata.xldutils.bean;
|
| /**
| * 图片实体
| * Created by Nereo on 2015/4/7.
| */
| public class Image {
| public String path;
| public String name;
| public long time;
|
| public Image(String path, String name, long time){
| this.path = path;
| this.name = name;
| this.time = time;
| }
|
| @Override
| public boolean equals(Object o) {
| try {
| Image other = (Image) o;
| return this.path.equalsIgnoreCase(other.path);
| }catch (ClassCastException e){
| e.printStackTrace();
| }
| return super.equals(o);
| }
| }
|
|