package androidx.core.view; import android.os.Build; import android.view.WindowInsets; /* loaded from: classes.dex */ public class WindowInsetsCompat { private final Object a; private WindowInsetsCompat(Object obj) { this.a = obj; } public WindowInsetsCompat a() { if (Build.VERSION.SDK_INT >= 20) { return new WindowInsetsCompat(((WindowInsets) this.a).consumeSystemWindowInsets()); } return null; } public int b() { if (Build.VERSION.SDK_INT >= 20) { return ((WindowInsets) this.a).getSystemWindowInsetBottom(); } return 0; } public int c() { if (Build.VERSION.SDK_INT >= 20) { return ((WindowInsets) this.a).getSystemWindowInsetLeft(); } return 0; } public int d() { if (Build.VERSION.SDK_INT >= 20) { return ((WindowInsets) this.a).getSystemWindowInsetRight(); } return 0; } public int e() { if (Build.VERSION.SDK_INT >= 20) { return ((WindowInsets) this.a).getSystemWindowInsetTop(); } return 0; } public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null || WindowInsetsCompat.class != obj.getClass()) { return false; } Object obj2 = this.a; Object obj3 = ((WindowInsetsCompat) obj).a; return obj2 == null ? obj3 == null : obj2.equals(obj3); } public boolean f() { if (Build.VERSION.SDK_INT >= 21) { return ((WindowInsets) this.a).isConsumed(); } return false; } public int hashCode() { Object obj = this.a; if (obj == null) { return 0; } return obj.hashCode(); } public WindowInsetsCompat a(int i, int i2, int i3, int i4) { if (Build.VERSION.SDK_INT >= 20) { return new WindowInsetsCompat(((WindowInsets) this.a).replaceSystemWindowInsets(i, i2, i3, i4)); } return null; } static WindowInsetsCompat a(Object obj) { if (obj == null) { return null; } return new WindowInsetsCompat(obj); } static Object a(WindowInsetsCompat windowInsetsCompat) { if (windowInsetsCompat == null) { return null; } return windowInsetsCompat.a; } }