public static class ArrayItemIterator.Builder extends AbstractItemIterator.AbstractBuilder<ArrayItemIterator.Builder,ArrayItemIterator>
ArrayItemIterator
.reverse, start
Constructor and Description |
---|
Builder(Model model,
de.mrapp.android.util.view.AttachedViewRecycler<AbstractItem,?> viewRecycler,
Tab[] array,
int firstIndex)
Creates a new builder, which allows to configure and create instances of the class
ArrayItemIterator . |
Modifier and Type | Method and Description |
---|---|
ArrayItemIterator |
create()
Creates the iterator, which has been configured by using the builder.
|
reverse, start
public Builder(@NonNull Model model, @NonNull de.mrapp.android.util.view.AttachedViewRecycler<AbstractItem,?> viewRecycler, @NonNull Tab[] array, int firstIndex)
ArrayItemIterator
.model
- The model, which belongs to the tab switcher, whose items should be iterated by
the iterator, which is created by the builder, as an instance of the type Model
. The model may not be nullviewRecycler
- The view recycler, which allows to inflate the views, which are used to visualize
the tabs, which should be iterated by the iterator, as an instance of the class
AttachedViewRecycler. The view recycler may not be nullarray
- The array, which contains the tabs, which should be iterated by the iterator, as
an array of the type Tab
. The array may not be nullfirstIndex
- The index of the first tab, which should be iterated by the iterator, as an
Integer
value. The index must be at least 0@NonNull public ArrayItemIterator create()
AbstractItemIterator.AbstractBuilder
create
in class AbstractItemIterator.AbstractBuilder<ArrayItemIterator.Builder,ArrayItemIterator>
ItemIterator
. The iterator may not be null