what-the-bank/sources/com/google/android/libraries/places/api/model/PlaceLikelihood.java

27 lines
997 B
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.libraries.places.api.model;
import android.os.Parcelable;
import com.google.android.libraries.places.internal.zzil;
import com.google.android.libraries.places.internal.zzjk;
/* loaded from: classes2.dex */
public abstract class PlaceLikelihood implements Parcelable {
public static final double LIKELIHOOD_MAX_VALUE = 1.0d;
public static final double LIKELIHOOD_MIN_VALUE = 0.0d;
public static PlaceLikelihood newInstance(Place place, double d) {
Double valueOf = Double.valueOf(0.0d);
Double valueOf2 = Double.valueOf(1.0d);
zzjk zzc = zzjk.zzc(valueOf, valueOf2);
Double valueOf3 = Double.valueOf(d);
if (zzc.zze(valueOf3)) {
return new zzat(place, d);
}
throw new IllegalArgumentException(zzil.zza("Likelihood must not be out-of-range: %s to %s, but was: %s.", valueOf, valueOf2, valueOf3));
}
public abstract double getLikelihood();
public abstract Place getPlace();
}