@Override protected Element computeNext() { if (offset >= indices.size()) { return endOfData(); } element.index = indices.get(offset); offset++; return element; }
private AllIterator() { element.index = -1; }