Rabbit-R1/original r1/java/sources/androidx/media3/exoplayer/trackselection/TrackSelectionArray.java
2024-05-21 17:08:36 -04:00

40 lines
1.1 KiB
Java

package androidx.media3.exoplayer.trackselection;
import java.util.Arrays;
/* loaded from: classes2.dex */
public final class TrackSelectionArray {
private int hashCode;
public final int length;
private final TrackSelection[] trackSelections;
public TrackSelectionArray(TrackSelection... trackSelectionArr) {
this.trackSelections = trackSelectionArr;
this.length = trackSelectionArr.length;
}
public TrackSelection get(int i) {
return this.trackSelections[i];
}
public TrackSelection[] getAll() {
return (TrackSelection[]) this.trackSelections.clone();
}
public int hashCode() {
if (this.hashCode == 0) {
this.hashCode = 527 + Arrays.hashCode(this.trackSelections);
}
return this.hashCode;
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null || getClass() != obj.getClass()) {
return false;
}
return Arrays.equals(this.trackSelections, ((TrackSelectionArray) obj).trackSelections);
}
}