public class ArrayItemIterator extends AbstractItemIterator
Modifier and Type | Class and Description |
---|---|
static class |
ArrayItemIterator.Builder
A builder, which allows to configure an create instances of the class
ArrayItemIterator . |
AbstractItemIterator.AbstractBuilder<BuilderType extends AbstractItemIterator.AbstractBuilder<?,ProductType>,ProductType extends AbstractItemIterator>
Modifier and Type | Method and Description |
---|---|
int |
getCount()
The method, which is invoked on subclasses in order to retrieve the total number of available
items.
|
AbstractItem |
getItem(int index)
The method, which is invoked on subclasses in order to retrieve the item, which corresponds
to a specific index.
|
first, hasNext, initialize, next, peek, previous
public final int getCount()
AbstractItemIterator
getCount
in class AbstractItemIterator
Integer
value@NonNull public final AbstractItem getItem(int index)
AbstractItemIterator
getItem
in class AbstractItemIterator
index
- The index of the item, which should be returned, as an Integer
valueAbstractItem
. The item may not be null