Initial commit
This commit is contained in:
31
sources/gnu/trove/TObjectIntIterator.java
Normal file
31
sources/gnu/trove/TObjectIntIterator.java
Normal file
@@ -0,0 +1,31 @@
|
||||
package gnu.trove;
|
||||
|
||||
import java.util.ConcurrentModificationException;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public class TObjectIntIterator<K> extends TIterator {
|
||||
private final TObjectIntHashMap<K> d;
|
||||
|
||||
public TObjectIntIterator(TObjectIntHashMap<K> tObjectIntHashMap) {
|
||||
super(tObjectIntHashMap);
|
||||
this.d = tObjectIntHashMap;
|
||||
}
|
||||
|
||||
@Override // gnu.trove.TIterator
|
||||
protected final int nextIndex() {
|
||||
int i;
|
||||
if (this.b != this.a.size()) {
|
||||
throw new ConcurrentModificationException();
|
||||
}
|
||||
Object[] objArr = this.d._set;
|
||||
int i2 = this.c;
|
||||
while (true) {
|
||||
i = i2 - 1;
|
||||
if (i2 <= 0 || !(objArr[i] == null || objArr[i] == TObjectHash.REMOVED)) {
|
||||
break;
|
||||
}
|
||||
i2 = i;
|
||||
}
|
||||
return i;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user