iterator

public abstract ListIterator<ItemStack> iterator()


public abstract ListIterator<ItemStack> iterator(int index)

Returns an iterator starting at the given index. If the index is positive, then the first call to next() will return the item at that index; if it is negative, the first call to previous will return the item at index (getSize() + index).

Return

An iterator.

Parameters

index

The index.