package android.support.v4.media;

import android.os.Parcel;
import android.os.Parcelable;
/* loaded from: classes.dex */
public final class RatingCompat implements Parcelable {
    public static final Parcelable.Creator<RatingCompat> CREATOR = new KQgRr5e_0();
    public final float KQgRr5e_0;

    /* renamed from: KQgRr5e_0  reason: collision with other field name */
    public final int f1807KQgRr5e_0;

    /* loaded from: classes.dex */
    public static class KQgRr5e_0 implements Parcelable.Creator<RatingCompat> {
        @Override // android.os.Parcelable.Creator
        /* renamed from: KQgRr5e_0 */
        public RatingCompat createFromParcel(Parcel parcel) {
            return new RatingCompat(parcel.readInt(), parcel.readFloat());
        }

        @Override // android.os.Parcelable.Creator
        /* renamed from: KQgRr5e_0 */
        public RatingCompat[] newArray(int i) {
            return new RatingCompat[i];
        }
    }

    public RatingCompat(int i, float f) {
        this.f1807KQgRr5e_0 = i;
        this.KQgRr5e_0 = f;
    }

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

    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("Rating:style=");
        sb.append(this.f1807KQgRr5e_0);
        sb.append(" rating=");
        float f = this.KQgRr5e_0;
        sb.append(f < 0.0f ? "unrated" : String.valueOf(f));
        return sb.toString();
    }

    @Override // android.os.Parcelable
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeInt(this.f1807KQgRr5e_0);
        parcel.writeFloat(this.KQgRr5e_0);
    }
}
