82 lines
2.5 KiB
Java
82 lines
2.5 KiB
Java
package com.google.android.libraries.places.api.model;
|
|
|
|
import com.airbnb.deeplinkdispatch.UrlTreeKt;
|
|
import java.util.List;
|
|
|
|
/* loaded from: classes2.dex */
|
|
abstract class zzb extends AddressComponent {
|
|
private final String zza;
|
|
private final String zzb;
|
|
private final List zzc;
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public zzb(String str, String str2, List list) {
|
|
if (str == null) {
|
|
throw new NullPointerException("Null name");
|
|
}
|
|
this.zza = str;
|
|
this.zzb = str2;
|
|
if (list == null) {
|
|
throw new NullPointerException("Null types");
|
|
}
|
|
this.zzc = list;
|
|
}
|
|
|
|
public final boolean equals(Object obj) {
|
|
if (obj == this) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof AddressComponent)) {
|
|
return false;
|
|
}
|
|
AddressComponent addressComponent = (AddressComponent) obj;
|
|
if (!this.zza.equals(addressComponent.getName())) {
|
|
return false;
|
|
}
|
|
String str = this.zzb;
|
|
if (str == null) {
|
|
if (addressComponent.getShortName() != null) {
|
|
return false;
|
|
}
|
|
} else if (!str.equals(addressComponent.getShortName())) {
|
|
return false;
|
|
}
|
|
return this.zzc.equals(addressComponent.getTypes());
|
|
}
|
|
|
|
public final int hashCode() {
|
|
int hashCode = this.zza.hashCode();
|
|
String str = this.zzb;
|
|
return ((((hashCode ^ 1000003) * 1000003) ^ (str == null ? 0 : str.hashCode())) * 1000003) ^ this.zzc.hashCode();
|
|
}
|
|
|
|
public final String toString() {
|
|
String str = this.zza;
|
|
String str2 = this.zzb;
|
|
String obj = this.zzc.toString();
|
|
StringBuilder sb = new StringBuilder("AddressComponent{name=");
|
|
sb.append(str);
|
|
sb.append(", shortName=");
|
|
sb.append(str2);
|
|
sb.append(", types=");
|
|
sb.append(obj);
|
|
sb.append(UrlTreeKt.componentParamSuffix);
|
|
return sb.toString();
|
|
}
|
|
|
|
@Override // com.google.android.libraries.places.api.model.AddressComponent
|
|
public final List<String> getTypes() {
|
|
return this.zzc;
|
|
}
|
|
|
|
@Override // com.google.android.libraries.places.api.model.AddressComponent
|
|
public final String getShortName() {
|
|
return this.zzb;
|
|
}
|
|
|
|
@Override // com.google.android.libraries.places.api.model.AddressComponent
|
|
public final String getName() {
|
|
return this.zza;
|
|
}
|
|
}
|