package e2;

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

/* JADX INFO: loaded from: classes.dex */
public final class c implements Metadata.Entry {

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

    @Nullable
    public final String title;

    @Nullable
    public final String url;

    public c(byte[] bArr, @Nullable String str, @Nullable String str2) {
        this.f25450a = bArr;
        this.title = str;
        this.url = str2;
    }

    public boolean equals(@Nullable Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null || c.class != obj.getClass()) {
            return false;
        }
        return Arrays.equals(this.f25450a, ((c) obj).f25450a);
    }

    public final int hashCode() {
        return Arrays.hashCode(this.f25450a);
    }

    @Override // androidx.media3.common.Metadata.Entry
    public final void populateMediaMetadata(MediaMetadata.Builder builder) {
        String str = this.title;
        if (str != null) {
            builder.setTitle(str);
        }
    }

    public final String toString() {
        return String.format("ICY: title=\"%s\", url=\"%s\", rawMetadata.length=\"%s\"", this.title, this.url, Integer.valueOf(this.f25450a.length));
    }
}
