blob: ca2da328f012f4374e6c1b8a1d464e9e7ac14535 (
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
|
package com.mavlushechka.a1qa.models;
import java.util.Objects;
public class Address {
public final String street;
public final String suite;
public final String city;
public final String zipcode;
public final Geo geo;
public Address(String street, String suite, String city, String zipcode, Geo geo) {
this.street = street;
this.suite = suite;
this.city = city;
this.zipcode = zipcode;
this.geo = geo;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
Address address = (Address) o;
return Objects.equals(street, address.street) && Objects.equals(suite, address.suite) && Objects.equals(city, address.city) && Objects.equals(zipcode, address.zipcode) && Objects.equals(geo, address.geo);
}
}
|