@Override public boolean moveNext() { if (expectedModCount == modCount()) { long[] tab = this.tab; int free = this.free; long entry; for (int i = index - 1; i >= 0; i--) { int key; if ((key = (int) (entry = tab[i])) != free) { index = i; curKey = key; return true; } } curKey = free; index = -1; return false; } else { throw new java.util.ConcurrentModificationException(); } }
@Override public boolean moveNext() { if (expectedModCount == modCount()) { long[] tab = this.tab; int free = this.free; long entry; for (int i = index - 1; i >= 0; i--) { int key; if ((key = (int) (entry = tab[i])) != free) { index = i; curKey = key; return true; } } curKey = free; index = -1; return false; } else { throw new java.util.ConcurrentModificationException(); } }
@Override public void forEachRemaining(Consumer<? super Integer> action) { if (action == null) throw new java.lang.NullPointerException(); int mc = expectedModCount; long[] tab = this.tab; int free = this.free; long entry; int nextI = nextIndex; for (int i = nextI; i >= 0; i--) { int key; if ((key = (int) (entry = tab[i])) != free) { action.accept(key); } } if (nextI != nextIndex || mc != modCount()) { throw new java.util.ConcurrentModificationException(); } index = nextIndex = -1; }
public void forEachRemaining(Consumer<? super Integer> action) { if (action == null) throw new java.lang.NullPointerException(); int mc = expectedModCount; long[] tab = this.tab; int free = this.free; long entry; int nextI = nextIndex; for (int i = nextI; i >= 0; i--) { int key; if ((key = (int) (entry = tab[i])) != free) { action.accept(key); } } if (nextI != nextIndex || mc != modCount()) { throw new java.util.ConcurrentModificationException(); } index = nextIndex = -1; }
@Override public void forEachForward(IntConsumer action) { if (action == null) throw new java.lang.NullPointerException(); int mc = expectedModCount; long[] tab = this.tab; int free = this.free; long entry; int index = this.index; for (int i = index - 1; i >= 0; i--) { int key; if ((key = (int) (entry = tab[i])) != free) { action.accept(key); } } if (index != this.index || mc != modCount()) { throw new java.util.ConcurrentModificationException(); } this.index = -1; curKey = free; }
@Override public void forEachForward(IntConsumer action) { if (action == null) throw new java.lang.NullPointerException(); int mc = expectedModCount; long[] tab = this.tab; int free = this.free; int removed = this.removed; long entry; int index = this.index; for (int i = index - 1; i >= 0; i--) { int key; if ((key = (int) (entry = tab[i])) != free && key != removed) { action.accept(key); } } if (index != this.index || mc != modCount()) { throw new java.util.ConcurrentModificationException(); } this.index = -1; curKey = free; }
@Override public void forEachRemaining(IntConsumer action) { if (action == null) throw new java.lang.NullPointerException(); int mc = expectedModCount; long[] tab = this.tab; int free = this.free; long entry; int nextI = nextIndex; for (int i = nextI; i >= 0; i--) { int key; if ((key = (int) (entry = tab[i])) != free) { action.accept(key); } } if (nextI != nextIndex || mc != modCount()) { throw new java.util.ConcurrentModificationException(); } index = nextIndex = -1; }
@Override public void forEachRemaining(IntConsumer action) { if (action == null) throw new java.lang.NullPointerException(); int mc = expectedModCount; long[] tab = this.tab; int free = this.free; int removed = this.removed; long entry; int nextI = nextIndex; for (int i = nextI; i >= 0; i--) { int key; if ((key = (int) (entry = tab[i])) != free && key != removed) { action.accept(key); } } if (nextI != nextIndex || mc != modCount()) { throw new java.util.ConcurrentModificationException(); } index = nextIndex = -1; }
@Override public void remove() { int free; if (curKey != (free = this.free)) { if (expectedModCount++ == modCount()) { this.curKey = free; incrementModCount(); U.putInt(tab, LONG_BASE + INT_KEY_OFFSET + (((long) (index)) << LONG_SCALE_SHIFT), removed); postRemoveHook(); } else { throw new java.util.ConcurrentModificationException(); } } else { throw new java.lang.IllegalStateException(); } } }
@Override public void remove() { int index; if ((index = this.index) >= 0) { if (expectedModCount++ == modCount()) { this.index = -1; incrementModCount(); U.putInt(tab, LONG_BASE + INT_KEY_OFFSET + (((long) (index)) << LONG_SCALE_SHIFT), removed); postRemoveHook(); } else { throw new java.util.ConcurrentModificationException(); } } else { throw new java.lang.IllegalStateException(); } } }
@Override public void remove() { int index; if ((index = this.index) >= 0) { if (expectedModCount++ == modCount()) { this.index = -1; incrementModCount(); U.putInt(tab, LONG_BASE + INT_KEY_OFFSET + (((long) (index)) << LONG_SCALE_SHIFT), removed); postRemoveHook(); } else { throw new java.util.ConcurrentModificationException(); } } else { throw new java.lang.IllegalStateException(); } } }
@Override public void remove() { int index; if ((index = this.index) >= 0) { if (expectedModCount++ == modCount()) { this.index = -1; incrementModCount(); U.putInt(tab, LONG_BASE + INT_KEY_OFFSET + (((long) (index)) << LONG_SCALE_SHIFT), removed); postRemoveHook(); } else { throw new java.util.ConcurrentModificationException(); } } else { throw new java.lang.IllegalStateException(); } } }
@Override public void remove() { int free; if (curKey != (free = this.free)) { if (expectedModCount++ == modCount()) { this.curKey = free; incrementModCount(); U.putInt(tab, LONG_BASE + INT_KEY_OFFSET + (((long) (index)) << LONG_SCALE_SHIFT), removed); postRemoveHook(); } else { throw new java.util.ConcurrentModificationException(); } } else { throw new java.lang.IllegalStateException(); } } }
@Override public void remove() { int free; if (curKey != (free = this.free)) { if (expectedModCount++ == modCount()) { this.curKey = free; incrementModCount(); U.putInt(tab, LONG_BASE + INT_KEY_OFFSET + (((long) (index)) << LONG_SCALE_SHIFT), removed); postRemoveHook(); } else { throw new java.util.ConcurrentModificationException(); } } else { throw new java.lang.IllegalStateException(); } } }
@Override public void remove() { int index; if ((index = this.index) >= 0) { if (expectedModCount++ == modCount()) { this.index = -1; incrementModCount(); U.putInt(tab, LONG_BASE + INT_KEY_OFFSET + (((long) (index)) << LONG_SCALE_SHIFT), removed); postRemoveHook(); } else { throw new java.util.ConcurrentModificationException(); } } else { throw new java.lang.IllegalStateException(); } } }
@Override public void remove() { int free; if (curKey != (free = this.free)) { if (expectedModCount++ == modCount()) { this.curKey = free; incrementModCount(); U.putInt(tab, LONG_BASE + INT_KEY_OFFSET + (((long) (index)) << LONG_SCALE_SHIFT), removed); postRemoveHook(); } else { throw new java.util.ConcurrentModificationException(); } } else { throw new java.lang.IllegalStateException(); } } }
public IntCursor setCursor() { int mc = modCount(); if (!noRemoved()) return new SomeRemovedCursor(mc); return new NoRemovedCursor(mc); }
public IntCursor setCursor() { int mc = modCount(); if (!noRemoved()) return new SomeRemovedCursor(mc); return new NoRemovedCursor(mc); }
public IntIterator iterator() { int mc = modCount(); if (!noRemoved()) return new SomeRemovedIterator(mc); return new NoRemovedIterator(mc); }
public IntIterator iterator() { int mc = modCount(); if (!noRemoved()) return new SomeRemovedIterator(mc); return new NoRemovedIterator(mc); }