package q1;

import androidx.annotation.Nullable;
import androidx.media3.common.Metadata;
import androidx.media3.common.util.Assertions;

/* JADX INFO: loaded from: classes.dex */
public final class g implements Metadata.Entry {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final float f32098a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final float f32099b;

    public g(float f10, float f11) {
        Assertions.checkArgument(f10 >= -90.0f && f10 <= 90.0f && f11 >= -180.0f && f11 <= 180.0f, "Invalid latitude or longitude");
        this.f32098a = f10;
        this.f32099b = f11;
    }

    public boolean equals(@Nullable Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null || g.class != obj.getClass()) {
            return false;
        }
        g gVar = (g) obj;
        return this.f32098a == gVar.f32098a && this.f32099b == gVar.f32099b;
    }

    public final int hashCode() {
        return Float.valueOf(this.f32099b).hashCode() + ((Float.valueOf(this.f32098a).hashCode() + 527) * 31);
    }

    public final String toString() {
        return "xyz: latitude=" + this.f32098a + ", longitude=" + this.f32099b;
    }
}
