package f2;

import androidx.annotation.Nullable;
import androidx.media3.common.MediaMetadata;
import java.util.Arrays;
import java.util.Objects;

/* JADX INFO: loaded from: classes.dex */
public final class a extends j {

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

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

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final byte[] f25897d;

    @Nullable
    public final String description;

    public a(String str, @Nullable String str2, int i10, byte[] bArr) {
        super("APIC");
        this.f25895b = str;
        this.description = str2;
        this.f25896c = i10;
        this.f25897d = bArr;
    }

    public boolean equals(@Nullable Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null || a.class != obj.getClass()) {
            return false;
        }
        a aVar = (a) obj;
        return this.f25896c == aVar.f25896c && Objects.equals(this.f25895b, aVar.f25895b) && Objects.equals(this.description, aVar.description) && Arrays.equals(this.f25897d, aVar.f25897d);
    }

    public final int hashCode() {
        int i10 = (527 + this.f25896c) * 31;
        String str = this.f25895b;
        int iHashCode = (i10 + (str != null ? str.hashCode() : 0)) * 31;
        String str2 = this.description;
        return Arrays.hashCode(this.f25897d) + ((iHashCode + (str2 != null ? str2.hashCode() : 0)) * 31);
    }

    @Override // androidx.media3.common.Metadata.Entry
    public final void populateMediaMetadata(MediaMetadata.Builder builder) {
        builder.maybeSetArtworkData(this.f25897d, this.f25896c);
    }

    @Override // f2.j
    public final String toString() {
        return this.f25921a + ": mimeType=" + this.f25895b + ", description=" + this.description;
    }
}
