108 lines
8.5 KiB
Java
108 lines
8.5 KiB
Java
package com.google.maps.android.compose;
|
|
|
|
import com.google.android.gms.maps.model.LatLngBounds;
|
|
import com.google.android.gms.maps.model.MapStyleOptions;
|
|
import java.util.Objects;
|
|
import kotlin.Metadata;
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
/* JADX INFO: compiled from: MapProperties.kt */
|
|
/* JADX INFO: loaded from: classes2.dex */
|
|
@Metadata(d1 = {"\u0000<\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0007\n\u0002\b\u000e\n\u0002\u0010\u000e\n\u0002\b\u0003\n\u0002\u0010\b\n\u0002\b\u0002\b\u0007\u0018\u00002\u00020\u0001Be\u0012\b\b\u0002\u0010\u0002\u001a\u00020\u0003\u0012\b\b\u0002\u0010\u0004\u001a\u00020\u0003\u0012\b\b\u0002\u0010\u0005\u001a\u00020\u0003\u0012\b\b\u0002\u0010\u0006\u001a\u00020\u0003\u0012\n\b\u0002\u0010\u0007\u001a\u0004\u0018\u00010\b\u0012\n\b\u0002\u0010\t\u001a\u0004\u0018\u00010\n\u0012\b\b\u0002\u0010\u000b\u001a\u00020\f\u0012\b\b\u0002\u0010\r\u001a\u00020\u000e\u0012\b\b\u0002\u0010\u000f\u001a\u00020\u000e¢\u0006\u0004\b\u0010\u0010\u0011J\b\u0010\u001c\u001a\u00020\u001dH\u0016J\u0013\u0010\u001e\u001a\u00020\u00032\b\u0010\u001f\u001a\u0004\u0018\u00010\u0001H\u0096\u0002J\b\u0010 \u001a\u00020!H\u0016Jd\u0010\"\u001a\u00020\u00002\b\b\u0002\u0010\u0002\u001a\u00020\u00032\b\b\u0002\u0010\u0004\u001a\u00020\u00032\b\b\u0002\u0010\u0005\u001a\u00020\u00032\b\b\u0002\u0010\u0006\u001a\u00020\u00032\n\b\u0002\u0010\u0007\u001a\u0004\u0018\u00010\b2\n\b\u0002\u0010\t\u001a\u0004\u0018\u00010\n2\b\b\u0002\u0010\u000b\u001a\u00020\f2\b\b\u0002\u0010\r\u001a\u00020\u000e2\b\b\u0002\u0010\u000f\u001a\u00020\u000eR\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0002\u0010\u0012R\u0011\u0010\u0004\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0004\u0010\u0012R\u0011\u0010\u0005\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0005\u0010\u0012R\u0011\u0010\u0006\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0006\u0010\u0012R\u0013\u0010\u0007\u001a\u0004\u0018\u00010\b¢\u0006\b\n\u0000\u001a\u0004\b\u0013\u0010\u0014R\u0013\u0010\t\u001a\u0004\u0018\u00010\n¢\u0006\b\n\u0000\u001a\u0004\b\u0015\u0010\u0016R\u0011\u0010\u000b\u001a\u00020\f¢\u0006\b\n\u0000\u001a\u0004\b\u0017\u0010\u0018R\u0011\u0010\r\u001a\u00020\u000e¢\u0006\b\n\u0000\u001a\u0004\b\u0019\u0010\u001aR\u0011\u0010\u000f\u001a\u00020\u000e¢\u0006\b\n\u0000\u001a\u0004\b\u001b\u0010\u001a¨\u0006#"}, d2 = {"Lcom/google/maps/android/compose/MapProperties;", "", "isBuildingEnabled", "", "isIndoorEnabled", "isMyLocationEnabled", "isTrafficEnabled", "latLngBoundsForCameraTarget", "Lcom/google/android/gms/maps/model/LatLngBounds;", "mapStyleOptions", "Lcom/google/android/gms/maps/model/MapStyleOptions;", "mapType", "Lcom/google/maps/android/compose/MapType;", "maxZoomPreference", "", "minZoomPreference", "<init>", "(ZZZZLcom/google/android/gms/maps/model/LatLngBounds;Lcom/google/android/gms/maps/model/MapStyleOptions;Lcom/google/maps/android/compose/MapType;FF)V", "()Z", "getLatLngBoundsForCameraTarget", "()Lcom/google/android/gms/maps/model/LatLngBounds;", "getMapStyleOptions", "()Lcom/google/android/gms/maps/model/MapStyleOptions;", "getMapType", "()Lcom/google/maps/android/compose/MapType;", "getMaxZoomPreference", "()F", "getMinZoomPreference", "toString", "", "equals", "other", "hashCode", "", "copy", "maps-compose_release"}, k = 1, mv = {2, 0, 0}, xi = 48)
|
|
public final class MapProperties {
|
|
public static final int $stable = 0;
|
|
private final boolean isBuildingEnabled;
|
|
private final boolean isIndoorEnabled;
|
|
private final boolean isMyLocationEnabled;
|
|
private final boolean isTrafficEnabled;
|
|
private final LatLngBounds latLngBoundsForCameraTarget;
|
|
private final MapStyleOptions mapStyleOptions;
|
|
private final MapType mapType;
|
|
private final float maxZoomPreference;
|
|
private final float minZoomPreference;
|
|
|
|
public MapProperties() {
|
|
this(false, false, false, false, null, null, null, 0.0f, 0.0f, 511, null);
|
|
}
|
|
|
|
public MapProperties(boolean z, boolean z2, boolean z3, boolean z4, LatLngBounds latLngBounds, MapStyleOptions mapStyleOptions, MapType mapType, float f, float f2) {
|
|
Intrinsics.checkNotNullParameter(mapType, "mapType");
|
|
this.isBuildingEnabled = z;
|
|
this.isIndoorEnabled = z2;
|
|
this.isMyLocationEnabled = z3;
|
|
this.isTrafficEnabled = z4;
|
|
this.latLngBoundsForCameraTarget = latLngBounds;
|
|
this.mapStyleOptions = mapStyleOptions;
|
|
this.mapType = mapType;
|
|
this.maxZoomPreference = f;
|
|
this.minZoomPreference = f2;
|
|
}
|
|
|
|
/* JADX INFO: renamed from: isBuildingEnabled, reason: from getter */
|
|
public final boolean getIsBuildingEnabled() {
|
|
return this.isBuildingEnabled;
|
|
}
|
|
|
|
/* JADX INFO: renamed from: isIndoorEnabled, reason: from getter */
|
|
public final boolean getIsIndoorEnabled() {
|
|
return this.isIndoorEnabled;
|
|
}
|
|
|
|
/* JADX INFO: renamed from: isMyLocationEnabled, reason: from getter */
|
|
public final boolean getIsMyLocationEnabled() {
|
|
return this.isMyLocationEnabled;
|
|
}
|
|
|
|
/* JADX INFO: renamed from: isTrafficEnabled, reason: from getter */
|
|
public final boolean getIsTrafficEnabled() {
|
|
return this.isTrafficEnabled;
|
|
}
|
|
|
|
public final LatLngBounds getLatLngBoundsForCameraTarget() {
|
|
return this.latLngBoundsForCameraTarget;
|
|
}
|
|
|
|
public final MapStyleOptions getMapStyleOptions() {
|
|
return this.mapStyleOptions;
|
|
}
|
|
|
|
public /* synthetic */ MapProperties(boolean z, boolean z2, boolean z3, boolean z4, LatLngBounds latLngBounds, MapStyleOptions mapStyleOptions, MapType mapType, float f, float f2, int i, DefaultConstructorMarker defaultConstructorMarker) {
|
|
this((i & 1) != 0 ? false : z, (i & 2) != 0 ? false : z2, (i & 4) != 0 ? false : z3, (i & 8) == 0 ? z4 : false, (i & 16) != 0 ? null : latLngBounds, (i & 32) == 0 ? mapStyleOptions : null, (i & 64) != 0 ? MapType.NORMAL : mapType, (i & 128) != 0 ? 21.0f : f, (i & 256) != 0 ? 3.0f : f2);
|
|
}
|
|
|
|
public final MapType getMapType() {
|
|
return this.mapType;
|
|
}
|
|
|
|
public final float getMaxZoomPreference() {
|
|
return this.maxZoomPreference;
|
|
}
|
|
|
|
public final float getMinZoomPreference() {
|
|
return this.minZoomPreference;
|
|
}
|
|
|
|
public String toString() {
|
|
return "MapProperties(isBuildingEnabled=" + this.isBuildingEnabled + ", isIndoorEnabled=" + this.isIndoorEnabled + ", isMyLocationEnabled=" + this.isMyLocationEnabled + ", isTrafficEnabled=" + this.isTrafficEnabled + ", latLngBoundsForCameraTarget=" + this.latLngBoundsForCameraTarget + ", mapStyleOptions=" + this.mapStyleOptions + ", mapType=" + this.mapType + ", maxZoomPreference=" + this.maxZoomPreference + ", minZoomPreference=" + this.minZoomPreference + ')';
|
|
}
|
|
|
|
public boolean equals(Object other) {
|
|
if (other instanceof MapProperties) {
|
|
MapProperties mapProperties = (MapProperties) other;
|
|
if (this.isBuildingEnabled == mapProperties.isBuildingEnabled && this.isIndoorEnabled == mapProperties.isIndoorEnabled && this.isMyLocationEnabled == mapProperties.isMyLocationEnabled && this.isTrafficEnabled == mapProperties.isTrafficEnabled && Intrinsics.areEqual(this.latLngBoundsForCameraTarget, mapProperties.latLngBoundsForCameraTarget) && Intrinsics.areEqual(this.mapStyleOptions, mapProperties.mapStyleOptions) && this.mapType == mapProperties.mapType && this.maxZoomPreference == mapProperties.maxZoomPreference && this.minZoomPreference == mapProperties.minZoomPreference) {
|
|
return true;
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|
|
public int hashCode() {
|
|
return Objects.hash(Boolean.valueOf(this.isBuildingEnabled), Boolean.valueOf(this.isIndoorEnabled), Boolean.valueOf(this.isMyLocationEnabled), Boolean.valueOf(this.isTrafficEnabled), this.latLngBoundsForCameraTarget, this.mapStyleOptions, this.mapType, Float.valueOf(this.maxZoomPreference), Float.valueOf(this.minZoomPreference));
|
|
}
|
|
|
|
public final MapProperties copy(boolean isBuildingEnabled, boolean isIndoorEnabled, boolean isMyLocationEnabled, boolean isTrafficEnabled, LatLngBounds latLngBoundsForCameraTarget, MapStyleOptions mapStyleOptions, MapType mapType, float maxZoomPreference, float minZoomPreference) {
|
|
Intrinsics.checkNotNullParameter(mapType, "mapType");
|
|
return new MapProperties(isBuildingEnabled, isIndoorEnabled, isMyLocationEnabled, isTrafficEnabled, latLngBoundsForCameraTarget, mapStyleOptions, mapType, maxZoomPreference, minZoomPreference);
|
|
}
|
|
} |