package androidx.window.layout;

import android.graphics.Rect;
import androidx.core.view.f3;

/* JADX INFO: loaded from: classes.dex */
public final class o {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final androidx.window.core.b f4488a;

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

    public o(androidx.window.core.b bVar, f3 f3Var) {
        nb.g.i(f3Var, "_windowInsetsCompat");
        this.f4488a = bVar;
        this.f4489b = f3Var;
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!nb.g.c(o.class, obj != null ? obj.getClass() : null)) {
            return false;
        }
        nb.g.g(obj, "null cannot be cast to non-null type androidx.window.layout.WindowMetrics");
        o oVar = (o) obj;
        return nb.g.c(this.f4488a, oVar.f4488a) && nb.g.c(this.f4489b, oVar.f4489b);
    }

    public final int hashCode() {
        return this.f4489b.hashCode() + (this.f4488a.hashCode() * 31);
    }

    public final String toString() {
        return "WindowMetrics( bounds=" + this.f4488a + ", windowInsetsCompat=" + this.f4489b + ')';
    }

    /* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
    public o(f3 f3Var, Rect rect) {
        this(new androidx.window.core.b(rect), f3Var);
        nb.g.i(f3Var, "insets");
    }
}
