package g2;

import androidx.annotation.Nullable;
import androidx.media3.common.Metadata;
import androidx.media3.common.util.Assertions;
import java.util.ArrayList;
import java.util.List;

/* 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 List f26162a;

    public c(ArrayList arrayList) {
        this.f26162a = arrayList;
        boolean z10 = false;
        if (!arrayList.isEmpty()) {
            long j10 = ((b) arrayList.get(0)).f26160b;
            int i10 = 1;
            while (true) {
                if (i10 >= arrayList.size()) {
                    break;
                }
                if (((b) arrayList.get(i10)).f26159a < j10) {
                    z10 = true;
                    break;
                } else {
                    j10 = ((b) arrayList.get(i10)).f26160b;
                    i10++;
                }
            }
        }
        Assertions.checkArgument(!z10);
    }

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

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

    public final String toString() {
        return "SlowMotion: segments=" + this.f26162a;
    }
}
