Files
rr3-apk/decompiled/sources/com/google/android/exoplayer2/offline/StreamKey.java
Daniel Elliott f9d20bb3fc Add decompiled APK source code (JADX)
- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-18 14:52:23 -08:00

83 lines
2.6 KiB
Java

package com.google.android.exoplayer2.offline;
import android.os.Parcel;
import android.os.Parcelable;
import csdk.gluads.Consts;
/* loaded from: classes2.dex */
public final class StreamKey implements Comparable<StreamKey>, Parcelable {
public static final Parcelable.Creator<StreamKey> CREATOR = new Parcelable.Creator() { // from class: com.google.android.exoplayer2.offline.StreamKey.1
@Override // android.os.Parcelable.Creator
public StreamKey createFromParcel(Parcel parcel) {
return new StreamKey(parcel);
}
@Override // android.os.Parcelable.Creator
public StreamKey[] newArray(int i) {
return new StreamKey[i];
}
};
public final int groupIndex;
public final int periodIndex;
public final int streamIndex;
public final int trackIndex;
@Override // android.os.Parcelable
public int describeContents() {
return 0;
}
public int hashCode() {
return (((this.periodIndex * 31) + this.groupIndex) * 31) + this.streamIndex;
}
public StreamKey(Parcel parcel) {
this.periodIndex = parcel.readInt();
this.groupIndex = parcel.readInt();
int readInt = parcel.readInt();
this.streamIndex = readInt;
this.trackIndex = readInt;
}
public String toString() {
int i = this.periodIndex;
int i2 = this.groupIndex;
int i3 = this.streamIndex;
StringBuilder sb = new StringBuilder(35);
sb.append(i);
sb.append(Consts.STRING_PERIOD);
sb.append(i2);
sb.append(Consts.STRING_PERIOD);
sb.append(i3);
return sb.toString();
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null || StreamKey.class != obj.getClass()) {
return false;
}
StreamKey streamKey = (StreamKey) obj;
return this.periodIndex == streamKey.periodIndex && this.groupIndex == streamKey.groupIndex && this.streamIndex == streamKey.streamIndex;
}
@Override // java.lang.Comparable
public int compareTo(StreamKey streamKey) {
int i = this.periodIndex - streamKey.periodIndex;
if (i != 0) {
return i;
}
int i2 = this.groupIndex - streamKey.groupIndex;
return i2 == 0 ? this.streamIndex - streamKey.streamIndex : i2;
}
@Override // android.os.Parcelable
public void writeToParcel(Parcel parcel, int i) {
parcel.writeInt(this.periodIndex);
parcel.writeInt(this.groupIndex);
parcel.writeInt(this.streamIndex);
}
}