package t4;

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

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public static final e f32948c = new e();

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

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

    public e() {
        this.f32949a = false;
        this.f32950b = 0;
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof e)) {
            return false;
        }
        e eVar = (e) obj;
        boolean z10 = this.f32949a;
        if (z10 && eVar.f32949a) {
            if (this.f32950b == eVar.f32950b) {
                return true;
            }
        } else if (z10 == eVar.f32949a) {
            return true;
        }
        return false;
    }

    public final int hashCode() {
        if (this.f32949a) {
            return this.f32950b;
        }
        return 0;
    }

    public final String toString() {
        return this.f32949a ? String.format("OptionalInt[%s]", Integer.valueOf(this.f32950b)) : "OptionalInt.empty";
    }

    public e(int i10) {
        this.f32949a = true;
        this.f32950b = i10;
    }
}
