blob: d7e28dde737195030fee505126abde0055d9ac6c (
plain)
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
29
30
31
32
33
34
35
36
37
38
39
40
|
package com.mapbox.mapboxsdk.annotations;
import android.graphics.Bitmap;
public final class Icon {
private Bitmap mBitmap;
private String mId;
Icon(String id, Bitmap bitmap) {
mId = id;
mBitmap = bitmap;
}
public String getId() {
return mId;
}
public Bitmap getBitmap() {
return mBitmap;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
Icon icon = (Icon) o;
if (!mBitmap.equals(icon.mBitmap)) return false;
return mId.equals(icon.mId);
}
@Override
public int hashCode() {
int result = mBitmap.hashCode();
result = 31 * result + mId.hashCode();
return result;
}
}
|