TileRect.java
1.5 KB
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
57
/*
* Decompiled with CFR 0_118.
*
* Could not load the following classes:
* com.scene7.is.util.RectInt
* org.jetbrains.annotations.NotNull
*/
package com.scene7.is.ps.provider.defs;
import com.scene7.is.ps.provider.parsers.TileRectConverter;
import com.scene7.is.util.RectInt;
import org.jetbrains.annotations.NotNull;
public class TileRect {
@NotNull
public final RectInt rect;
public final double scale;
@NotNull
public static TileRect tileRect(@NotNull RectInt rect, double scale) {
return new TileRect(rect, scale);
}
@NotNull
public String toString() {
return (String)TileRectConverter.tileRectConverter().revert((Object)this);
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof TileRect)) {
return false;
}
TileRect tileRect = (TileRect)obj;
if (Double.compare(tileRect.scale, this.scale) != 0) {
return false;
}
return this.rect.equals((Object)tileRect.rect);
}
public int hashCode() {
int result = this.rect.hashCode();
long temp = this.scale != 0.0 ? Double.doubleToLongBits(this.scale) : 0;
result = 31 * result + (int)(temp ^ temp >>> 32);
return result;
}
private TileRect(@NotNull RectInt rect, double scale) {
assert (rect.width >= 1 && rect.height >= 1);
assert (scale > 0.0);
this.rect = rect;
this.scale = scale;
}
}