56 lines
1.8 KiB
Java
56 lines
1.8 KiB
Java
|
package com.google.android.libraries.places.api.model;
|
||
|
|
||
|
import com.airbnb.deeplinkdispatch.UrlTreeKt;
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
/* loaded from: classes2.dex */
|
||
|
public abstract class zzs extends PlaceLikelihood {
|
||
|
private final Place zza;
|
||
|
private final double zzb;
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public zzs(Place place, double d) {
|
||
|
if (place == null) {
|
||
|
throw new NullPointerException("Null place");
|
||
|
}
|
||
|
this.zza = place;
|
||
|
this.zzb = d;
|
||
|
}
|
||
|
|
||
|
public final boolean equals(Object obj) {
|
||
|
if (obj == this) {
|
||
|
return true;
|
||
|
}
|
||
|
if (!(obj instanceof PlaceLikelihood)) {
|
||
|
return false;
|
||
|
}
|
||
|
PlaceLikelihood placeLikelihood = (PlaceLikelihood) obj;
|
||
|
return this.zza.equals(placeLikelihood.getPlace()) && Double.doubleToLongBits(this.zzb) == Double.doubleToLongBits(placeLikelihood.getLikelihood());
|
||
|
}
|
||
|
|
||
|
public final int hashCode() {
|
||
|
return ((this.zza.hashCode() ^ 1000003) * 1000003) ^ ((int) ((Double.doubleToLongBits(this.zzb) >>> 32) ^ Double.doubleToLongBits(this.zzb)));
|
||
|
}
|
||
|
|
||
|
public final String toString() {
|
||
|
String obj = this.zza.toString();
|
||
|
double d = this.zzb;
|
||
|
StringBuilder sb = new StringBuilder("PlaceLikelihood{place=");
|
||
|
sb.append(obj);
|
||
|
sb.append(", likelihood=");
|
||
|
sb.append(d);
|
||
|
sb.append(UrlTreeKt.componentParamSuffix);
|
||
|
return sb.toString();
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.libraries.places.api.model.PlaceLikelihood
|
||
|
public final Place getPlace() {
|
||
|
return this.zza;
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.libraries.places.api.model.PlaceLikelihood
|
||
|
public final double getLikelihood() {
|
||
|
return this.zzb;
|
||
|
}
|
||
|
}
|