mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-12-06 20:39:26 +01:00
68 lines
2.4 KiB
Java
68 lines
2.4 KiB
Java
package com.google.android.exoplayer2.source;
|
|
|
|
import androidx.annotation.Nullable;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
/* loaded from: classes7.dex */
|
|
public class MediaPeriodId {
|
|
public final int adGroupIndex;
|
|
public final int adIndexInAdGroup;
|
|
public final int nextAdGroupIndex;
|
|
public final Object periodUid;
|
|
public final long windowSequenceNumber;
|
|
|
|
public MediaPeriodId(MediaPeriodId mediaPeriodId) {
|
|
this.periodUid = mediaPeriodId.periodUid;
|
|
this.adGroupIndex = mediaPeriodId.adGroupIndex;
|
|
this.adIndexInAdGroup = mediaPeriodId.adIndexInAdGroup;
|
|
this.windowSequenceNumber = mediaPeriodId.windowSequenceNumber;
|
|
this.nextAdGroupIndex = mediaPeriodId.nextAdGroupIndex;
|
|
}
|
|
|
|
public MediaPeriodId copyWithPeriodUid(Object obj) {
|
|
return this.periodUid.equals(obj) ? this : new MediaPeriodId(obj, this.adGroupIndex, this.adIndexInAdGroup, this.windowSequenceNumber, this.nextAdGroupIndex);
|
|
}
|
|
|
|
public boolean equals(@Nullable Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof MediaPeriodId)) {
|
|
return false;
|
|
}
|
|
MediaPeriodId mediaPeriodId = (MediaPeriodId) obj;
|
|
return this.periodUid.equals(mediaPeriodId.periodUid) && this.adGroupIndex == mediaPeriodId.adGroupIndex && this.adIndexInAdGroup == mediaPeriodId.adIndexInAdGroup && this.windowSequenceNumber == mediaPeriodId.windowSequenceNumber && this.nextAdGroupIndex == mediaPeriodId.nextAdGroupIndex;
|
|
}
|
|
|
|
public int hashCode() {
|
|
return ((((((((this.periodUid.hashCode() + 527) * 31) + this.adGroupIndex) * 31) + this.adIndexInAdGroup) * 31) + ((int) this.windowSequenceNumber)) * 31) + this.nextAdGroupIndex;
|
|
}
|
|
|
|
public boolean isAd() {
|
|
return this.adGroupIndex != -1;
|
|
}
|
|
|
|
public MediaPeriodId(Object obj, long j) {
|
|
this(obj, -1, -1, j, -1);
|
|
}
|
|
|
|
public MediaPeriodId(Object obj, long j, int i) {
|
|
this(obj, -1, -1, j, i);
|
|
}
|
|
|
|
public MediaPeriodId(Object obj, int i, int i2, long j) {
|
|
this(obj, i, i2, j, -1);
|
|
}
|
|
|
|
public MediaPeriodId(Object obj) {
|
|
this(obj, -1L);
|
|
}
|
|
|
|
private MediaPeriodId(Object obj, int i, int i2, long j, int i3) {
|
|
this.periodUid = obj;
|
|
this.adGroupIndex = i;
|
|
this.adIndexInAdGroup = i2;
|
|
this.windowSequenceNumber = j;
|
|
this.nextAdGroupIndex = i3;
|
|
}
|
|
}
|