@Override public void remove() { if (last == -1) throw new IllegalStateException(); BooleanBigArrayBigList.this.removeBoolean(last); /* * If the last operation was a next(), we are removing an element *before* us, * and we must decrease pos correspondingly. */ if (last < pos) pos--; last = -1; } };
@Override public boolean rem(final boolean k) { final long index = indexOf(k); if (index == -1) return false; removeBoolean(index); assert size <= BooleanBigArrays.length(a); return true; } @Override