Files
rr3-apk/decompiled-community/sources/com/mbridge/msdk/playercommon/exoplayer2/source/TrackGroupArray.java
Daniel Elliott c080f0d97f Add Discord community version (64-bit only)
- Added realracing3-community.apk (71.57 MB)
- Removed 32-bit support (armeabi-v7a)
- Only includes arm64-v8a libraries
- Decompiled source code included
- Added README-community.md with analysis
2026-02-18 15:48:36 -08:00

90 lines
2.9 KiB
Java

package com.mbridge.msdk.playercommon.exoplayer2.source;
import android.os.Parcel;
import android.os.Parcelable;
import androidx.annotation.Nullable;
import java.util.Arrays;
/* loaded from: classes4.dex */
public final class TrackGroupArray implements Parcelable {
private int hashCode;
public final int length;
private final TrackGroup[] trackGroups;
public static final TrackGroupArray EMPTY = new TrackGroupArray(new TrackGroup[0]);
public static final Parcelable.Creator<TrackGroupArray> CREATOR = new Parcelable.Creator<TrackGroupArray>() { // from class: com.mbridge.msdk.playercommon.exoplayer2.source.TrackGroupArray.1
/* JADX WARN: Can't rename method to resolve collision */
@Override // android.os.Parcelable.Creator
public TrackGroupArray createFromParcel(Parcel parcel) {
return new TrackGroupArray(parcel);
}
/* JADX WARN: Can't rename method to resolve collision */
@Override // android.os.Parcelable.Creator
public TrackGroupArray[] newArray(int i) {
return new TrackGroupArray[i];
}
};
@Override // android.os.Parcelable
public final int describeContents() {
return 0;
}
public final boolean isEmpty() {
return this.length == 0;
}
public TrackGroupArray(TrackGroup... trackGroupArr) {
this.trackGroups = trackGroupArr;
this.length = trackGroupArr.length;
}
public TrackGroupArray(Parcel parcel) {
int readInt = parcel.readInt();
this.length = readInt;
this.trackGroups = new TrackGroup[readInt];
for (int i = 0; i < this.length; i++) {
this.trackGroups[i] = (TrackGroup) parcel.readParcelable(TrackGroup.class.getClassLoader());
}
}
public final TrackGroup get(int i) {
return this.trackGroups[i];
}
public final int indexOf(TrackGroup trackGroup) {
for (int i = 0; i < this.length; i++) {
if (this.trackGroups[i] == trackGroup) {
return i;
}
}
return -1;
}
public final int hashCode() {
if (this.hashCode == 0) {
this.hashCode = Arrays.hashCode(this.trackGroups);
}
return this.hashCode;
}
public final boolean equals(@Nullable Object obj) {
if (this == obj) {
return true;
}
if (obj == null || TrackGroupArray.class != obj.getClass()) {
return false;
}
TrackGroupArray trackGroupArray = (TrackGroupArray) obj;
return this.length == trackGroupArray.length && Arrays.equals(this.trackGroups, trackGroupArray.trackGroups);
}
@Override // android.os.Parcelable
public final void writeToParcel(Parcel parcel, int i) {
parcel.writeInt(this.length);
for (int i2 = 0; i2 < this.length; i2++) {
parcel.writeParcelable(this.trackGroups[i2], 0);
}
}
}