what-the-bank/sources/com/google/android/gms/maps/model/StreetViewSource.java

50 lines
1.7 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.gms.maps.model;
import android.os.Parcel;
import android.os.Parcelable;
import com.google.android.gms.common.internal.Objects;
import com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable;
import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter;
/* loaded from: classes2.dex */
public final class StreetViewSource extends AbstractSafeParcelable {
public static final Parcelable.Creator<StreetViewSource> CREATOR = new zzq();
public static final StreetViewSource DEFAULT = new StreetViewSource(0);
public static final StreetViewSource OUTDOOR = new StreetViewSource(1);
private static final String TAG = "StreetViewSource";
private final int type;
public StreetViewSource(int i) {
this.type = i;
}
@Override // android.os.Parcelable
public final void writeToParcel(Parcel parcel, int i) {
int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
SafeParcelWriter.writeInt(parcel, 2, this.type);
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
}
public final int hashCode() {
return Objects.hashCode(Integer.valueOf(this.type));
}
public final boolean equals(Object obj) {
if (this == obj) {
return true;
}
return (obj instanceof StreetViewSource) && this.type == ((StreetViewSource) obj).type;
}
public final String toString() {
String str;
int i = this.type;
if (i != 0) {
str = i != 1 ? String.format("UNKNOWN(%s)", Integer.valueOf(i)) : "OUTDOOR";
} else {
str = "DEFAULT";
}
return String.format("StreetViewSource:%s", str);
}
}