package l2;

import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.Objects;

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

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

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

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final long f20284c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final long f20285d;

    public i(int i6, int i7, long j4, long j6) {
        this.f20282a = i6;
        this.f20283b = i7;
        this.f20284c = j4;
        this.f20285d = j6;
    }

    public static i a(File file) throws IOException {
        DataInputStream dataInputStream = new DataInputStream(new FileInputStream(file));
        try {
            i iVar = new i(dataInputStream.readInt(), dataInputStream.readInt(), dataInputStream.readLong(), dataInputStream.readLong());
            dataInputStream.close();
            return iVar;
        } finally {
        }
    }

    public final void b(File file) throws IOException {
        file.delete();
        DataOutputStream dataOutputStream = new DataOutputStream(new FileOutputStream(file));
        try {
            dataOutputStream.writeInt(this.f20282a);
            dataOutputStream.writeInt(this.f20283b);
            dataOutputStream.writeLong(this.f20284c);
            dataOutputStream.writeLong(this.f20285d);
            dataOutputStream.close();
        } catch (Throwable th) {
            try {
                dataOutputStream.close();
            } catch (Throwable th2) {
                th.addSuppressed(th2);
            }
            throw th;
        }
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj != null && (obj instanceof i)) {
            i iVar = (i) obj;
            if (this.f20283b == iVar.f20283b && this.f20284c == iVar.f20284c && this.f20282a == iVar.f20282a && this.f20285d == iVar.f20285d) {
                return true;
            }
        }
        return false;
    }

    public final int hashCode() {
        return Objects.hash(Integer.valueOf(this.f20283b), Long.valueOf(this.f20284c), Integer.valueOf(this.f20282a), Long.valueOf(this.f20285d));
    }
}
