mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-30 11:02:31 -06:00
40 lines
1.1 KiB
Java
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);
|
|
}
|
|
}
|