protected class AbstractTabSwitcherLayout.InitialItemIterator extends AbstractItemIterator
TabSwitcher
. When an item is referenced for the first time, its initial position
and state is calculated and the item is stored in a backing array. When the item is
iterated again, it is retrieved from the backing array.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