zj
2024-06-03 287ac389edd047696d956afafdb855a93830bc0c
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
package com.nq.utils.ip.juhe;
 
 
public class AddressResult {
    private String area;
    private String location;
 
    public void setArea(String area) {
        this.area = area;
    }
 
    public void setLocation(String location) {
        this.location = location;
    }
 
    public boolean equals(Object o) {
        if (o == this) return true;
        if (!(o instanceof AddressResult)) return false;
        AddressResult other = (AddressResult) o;
        if (!other.canEqual(this)) return false;
        Object this$area = getArea(), other$area = other.getArea();
        if ((this$area == null) ? (other$area != null) : !this$area.equals(other$area)) return false;
        Object this$location = getLocation(), other$location = other.getLocation();
        return !((this$location == null) ? (other$location != null) : !this$location.equals(other$location));
    }
 
    protected boolean canEqual(Object other) {
        return other instanceof AddressResult;
    }
 
    public int hashCode() {
        int PRIME = 59;
        int result = 1;
        Object $area = getArea();
        result = result * 59 + (($area == null) ? 43 : $area.hashCode());
        Object $location = getLocation();
        return result * 59 + (($location == null) ? 43 : $location.hashCode());
    }
 
    public String toString() {
        return "AddressResult(area=" + getArea() + ", location=" + getLocation() + ")";
    }
 
 
    public String getArea() {
        return this.area;
    }
 
    public String getLocation() {
        return this.location;
    }
}