public int nextIndex() {
        return this.index - this.startIndex;
    }
Gets the next index to be retrieved.

@return the index of the item to be retrieved next
jphp-runtime/src/php/runtime/common/collections/iterators/ObjectArrayListIterator.java