blob: a46c11b35cdac8efe61fba3b95f73a8f9db17a78 (
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
package com.mapbox.mapboxsdk.style.layers;
public class TransitionOptions {
private long duration;
private long delay;
public TransitionOptions(long duration, long delay) {
this.duration = duration;
this.delay = delay;
}
public static TransitionOptions fromTransitionOptions(long duration, long delay) {
return new TransitionOptions(duration, delay);
}
public long getDuration() {
return duration;
}
public long getDelay() {
return delay;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
TransitionOptions that = (TransitionOptions) o;
if (duration != that.duration) {
return false;
}
return delay == that.delay;
}
@Override
public int hashCode() {
int result = (int) (duration ^ (duration >>> 32));
result = 31 * result + (int) (delay ^ (delay >>> 32));
return result;
}
@Override
public String toString() {
return "TransitionOptions{"
+ "duration=" + duration
+ ", delay=" + delay
+ '}';
}
}
|