@Override public boolean moveNext() { if (expectedModCount == modCount()) { long[] keys = this.keys; long free = this.free; for (int i = index - 1; i >= 0; i--) { long key; if ((key = keys[i]) != free) { index = i; curKey = key; return true; } } curKey = free; index = -1; return false; } else { throw new java.util.ConcurrentModificationException(); } }
@Override public long nextLong() { int nextI; if ((nextI = nextIndex) >= 0) { if (expectedModCount == modCount()) { index = nextI; long[] keys = this.keys; long free = this.free; long prev = next; while (--nextI >= 0) { long key; if ((key = keys[nextI]) != free) { next = key; break; } } nextIndex = nextI; return prev; } else { throw new java.util.ConcurrentModificationException(); } } else { throw new java.util.NoSuchElementException(); } }
@Override public long nextLong() { int nextI; if ((nextI = nextIndex) >= 0) { if (expectedModCount == modCount()) { index = nextI; long[] keys = this.keys; long free = this.free; long prev = next; while (--nextI >= 0) { long key; if ((key = keys[nextI]) != free) { next = key; break; } } nextIndex = nextI; return prev; } else { throw new java.util.ConcurrentModificationException(); } } else { throw new java.util.NoSuchElementException(); } }
@Override public void forEachRemaining(Consumer<? super Long> action) { if (action == null) throw new java.lang.NullPointerException(); int mc = expectedModCount; long[] keys = this.keys; long free = this.free; int nextI = nextIndex; for (int i = nextI; i >= 0; i--) { long key; if ((key = keys[i]) != free) { action.accept(key); } } if (nextI != nextIndex || mc != modCount()) { throw new java.util.ConcurrentModificationException(); } index = nextIndex = -1; }
public void forEachRemaining(Consumer<? super Long> action) { if (action == null) throw new java.lang.NullPointerException(); int mc = expectedModCount; long[] keys = this.keys; long free = this.free; int nextI = nextIndex; for (int i = nextI; i >= 0; i--) { long key; if ((key = keys[i]) != free) { action.accept(key); } } if (nextI != nextIndex || mc != modCount()) { throw new java.util.ConcurrentModificationException(); } index = nextIndex = -1; }
@Override public void forEachRemaining(LongConsumer action) { if (action == null) throw new java.lang.NullPointerException(); int mc = expectedModCount; long[] keys = this.keys; long free = this.free; int nextI = nextIndex; for (int i = nextI; i >= 0; i--) { long key; if ((key = keys[i]) != free) { action.accept(key); } } if (nextI != nextIndex || mc != modCount()) { throw new java.util.ConcurrentModificationException(); } index = nextIndex = -1; }
@Override public void forEachRemaining(LongConsumer action) { if (action == null) throw new java.lang.NullPointerException(); int mc = expectedModCount; long[] keys = this.keys; long free = this.free; int nextI = nextIndex; for (int i = nextI; i >= 0; i--) { long key; if ((key = keys[i]) != free) { action.accept(key); } } if (nextI != nextIndex || mc != modCount()) { throw new java.util.ConcurrentModificationException(); } index = nextIndex = -1; }
public void forEachRemaining(Consumer<? super Long> action) { if (action == null) throw new java.lang.NullPointerException(); int mc = expectedModCount; long[] keys = this.keys; long free = this.free; long removed = this.removed; int nextI = nextIndex; for (int i = nextI; i >= 0; i--) { long key; if ((key = keys[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 index; if ((index = this.index) >= 0) { if (expectedModCount++ == modCount()) { this.index = -1; incrementModCount(); keys[index] = removed; postRemoveHook(); } else { throw new java.util.ConcurrentModificationException(); } } else { throw new java.lang.IllegalStateException(); } } }
@Override public void remove() { long free; if (curKey != (free = this.free)) { if (expectedModCount++ == modCount()) { this.curKey = free; incrementModCount(); keys[index] = removed; postRemoveHook(); } else { throw new java.util.ConcurrentModificationException(); } } else { throw new java.lang.IllegalStateException(); } } }
@Override public void remove() { long free; if (curKey != (free = this.free)) { if (expectedModCount++ == modCount()) { this.curKey = free; incrementModCount(); keys[index] = 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(); keys[index] = removed; postRemoveHook(); } else { throw new java.util.ConcurrentModificationException(); } } else { throw new java.lang.IllegalStateException(); } } }
@Override public void remove() { long free; if (curKey != (free = this.free)) { if (expectedModCount++ == modCount()) { this.curKey = free; incrementModCount(); keys[index] = 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(); keys[index] = 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(); keys[index] = removed; postRemoveHook(); } else { throw new java.util.ConcurrentModificationException(); } } else { throw new java.lang.IllegalStateException(); } } }
@Override public void remove() { long free; if (curKey != (free = this.free)) { if (expectedModCount++ == modCount()) { this.curKey = free; incrementModCount(); keys[index] = removed; postRemoveHook(); } else { throw new java.util.ConcurrentModificationException(); } } else { throw new java.lang.IllegalStateException(); } } }
public LongIterator iterator() { int mc = modCount(); if (!noRemoved()) return new SomeRemovedIterator(mc); return new NoRemovedIterator(mc); }
public LongCursor setCursor() { int mc = modCount(); if (!noRemoved()) return new SomeRemovedCursor(mc); return new NoRemovedCursor(mc); }
public LongIterator iterator() { int mc = modCount(); if (!noRemoved()) return new SomeRemovedIterator(mc); return new NoRemovedIterator(mc); }
public LongCursor setCursor() { int mc = modCount(); if (!noRemoved()) return new SomeRemovedCursor(mc); return new NoRemovedCursor(mc); }