T - type of array elementpublic abstract class ArrayIteratorAdapter<T> extends Object implements Iterator<IModel<T>>
model(Object)
method to wrap each item in a model before it is returned through
next() method.| Constructor and Description |
|---|
ArrayIteratorAdapter(T[] array)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
protected abstract IModel<T> |
model(T object)
This method is used to wrap the provided object with an implementation of IModel.
|
IModel<T> |
next() |
void |
remove() |
void |
reset()
Resets the iterator position back to the beginning of the array
|
public ArrayIteratorAdapter(T[] array)
array - public void remove()
remove in interface Iterator<IModel<T>>Iterator.remove()public boolean hasNext()
hasNext in interface Iterator<IModel<T>>Iterator.hasNext()public IModel<T> next()
next in interface Iterator<IModel<T>>Iterator.next()public void reset()
Copyright © 2006–2014 Apache Software Foundation. All rights reserved.