61 lines
1.4 KiB
Java
61 lines
1.4 KiB
Java
package com.google.android.gms.internal.common;
|
|
|
|
import java.util.NoSuchElementException;
|
|
import org.jspecify.nullness.NullMarked;
|
|
|
|
@NullMarked
|
|
/* loaded from: classes2.dex */
|
|
abstract class zzz extends zzak {
|
|
private final int zza;
|
|
private int zzb;
|
|
|
|
/* JADX INFO: Access modifiers changed from: protected */
|
|
public zzz(int i, int i2) {
|
|
zzs.zzb(i2, i, "index");
|
|
this.zza = i;
|
|
this.zzb = i2;
|
|
}
|
|
|
|
@Override // java.util.Iterator, java.util.ListIterator
|
|
public final Object next() {
|
|
if (!hasNext()) {
|
|
throw new NoSuchElementException();
|
|
}
|
|
int i = this.zzb;
|
|
this.zzb = i + 1;
|
|
return zza(i);
|
|
}
|
|
|
|
@Override // java.util.ListIterator
|
|
public final Object previous() {
|
|
if (!hasPrevious()) {
|
|
throw new NoSuchElementException();
|
|
}
|
|
int i = this.zzb - 1;
|
|
this.zzb = i;
|
|
return zza(i);
|
|
}
|
|
|
|
protected abstract Object zza(int i);
|
|
|
|
@Override // java.util.ListIterator
|
|
public final int previousIndex() {
|
|
return this.zzb - 1;
|
|
}
|
|
|
|
@Override // java.util.ListIterator
|
|
public final int nextIndex() {
|
|
return this.zzb;
|
|
}
|
|
|
|
@Override // java.util.ListIterator
|
|
public final boolean hasPrevious() {
|
|
return this.zzb > 0;
|
|
}
|
|
|
|
@Override // java.util.Iterator, java.util.ListIterator
|
|
public final boolean hasNext() {
|
|
return this.zzb < this.zza;
|
|
}
|
|
}
|