package com.martsnew.domain.model;

import I1.a;
import P6.g;
import android.os.Parcel;
import android.os.Parcelable;
import java.util.Arrays;
import k5.l;

/* JADX INFO: loaded from: classes.dex */
public final class Vote implements Parcelable {
    public static final Parcelable.Creator<Vote> CREATOR = new l(6);

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

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

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

    public Vote(long j8, long j9, long j10) {
        this.f11102q = j8;
        this.f11103r = j9;
        this.f11104s = j10;
    }

    public final String a() {
        long j8 = this.f11103r;
        return String.format("%.1f", Arrays.copyOf(new Object[]{Float.valueOf(j8 == 0 ? 0.0f : this.f11104s / j8)}, 1));
    }

    @Override // android.os.Parcelable
    public final int describeContents() {
        return 0;
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof Vote)) {
            return false;
        }
        Vote vote = (Vote) obj;
        return this.f11102q == vote.f11102q && this.f11103r == vote.f11103r && this.f11104s == vote.f11104s;
    }

    public final int hashCode() {
        long j8 = this.f11102q;
        long j9 = this.f11103r;
        int i = ((((int) (j8 ^ (j8 >>> 32))) * 31) + ((int) (j9 ^ (j9 >>> 32)))) * 31;
        long j10 = this.f11104s;
        return i + ((int) ((j10 >>> 32) ^ j10));
    }

    public final String toString() {
        StringBuilder sb = new StringBuilder("Vote(movieId=");
        sb.append(this.f11102q);
        sb.append(", count=");
        sb.append(this.f11103r);
        sb.append(", totalScore=");
        return a.q(sb, this.f11104s, ")");
    }

    @Override // android.os.Parcelable
    public final void writeToParcel(Parcel parcel, int i) {
        g.e(parcel, "dest");
        parcel.writeLong(this.f11102q);
        parcel.writeLong(this.f11103r);
        parcel.writeLong(this.f11104s);
    }
}
