- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
82 lines
2.0 KiB
Java
82 lines
2.0 KiB
Java
package com.applovin.exoplayer2.common.base;
|
|
|
|
import java.util.Iterator;
|
|
import java.util.NoSuchElementException;
|
|
|
|
/* loaded from: classes.dex */
|
|
abstract class b implements Iterator {
|
|
private EnumC0010b a = EnumC0010b.NOT_READY;
|
|
private Object b;
|
|
|
|
public static /* synthetic */ class a {
|
|
static final /* synthetic */ int[] a;
|
|
|
|
static {
|
|
int[] iArr = new int[EnumC0010b.values().length];
|
|
a = iArr;
|
|
try {
|
|
iArr[EnumC0010b.READY.ordinal()] = 1;
|
|
} catch (NoSuchFieldError unused) {
|
|
}
|
|
try {
|
|
a[EnumC0010b.DONE.ordinal()] = 2;
|
|
} catch (NoSuchFieldError unused2) {
|
|
}
|
|
}
|
|
}
|
|
|
|
/* renamed from: com.applovin.exoplayer2.common.base.b$b, reason: collision with other inner class name */
|
|
public enum EnumC0010b {
|
|
READY,
|
|
NOT_READY,
|
|
DONE,
|
|
FAILED
|
|
}
|
|
|
|
private boolean c() {
|
|
this.a = EnumC0010b.FAILED;
|
|
this.b = a();
|
|
if (this.a == EnumC0010b.DONE) {
|
|
return false;
|
|
}
|
|
this.a = EnumC0010b.READY;
|
|
return true;
|
|
}
|
|
|
|
public abstract Object a();
|
|
|
|
public final Object b() {
|
|
this.a = EnumC0010b.DONE;
|
|
return null;
|
|
}
|
|
|
|
@Override // java.util.Iterator
|
|
public final boolean hasNext() {
|
|
Preconditions.checkState(this.a != EnumC0010b.FAILED);
|
|
int i = a.a[this.a.ordinal()];
|
|
if (i == 1) {
|
|
return true;
|
|
}
|
|
if (i != 2) {
|
|
return c();
|
|
}
|
|
return false;
|
|
}
|
|
|
|
@Override // java.util.Iterator
|
|
public final Object next() {
|
|
if (!hasNext()) {
|
|
throw new NoSuchElementException();
|
|
}
|
|
this.a = EnumC0010b.NOT_READY;
|
|
Object obj = this.b;
|
|
this.b = null;
|
|
return obj;
|
|
}
|
|
|
|
@Override // java.util.Iterator
|
|
public final void remove() {
|
|
throw new UnsupportedOperationException();
|
|
}
|
|
}
|