|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.markup.repeater.util.ArrayIteratorAdapter<T>
T - type of array elementpublic abstract class ArrayIteratorAdapter<T>
Iterator over an array. Implementation must provide model(Object)
method to wrap each item in a model before it is returned through
next() method.
| Constructor Summary | |
|---|---|
ArrayIteratorAdapter(T[] array)
Constructor |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ArrayIteratorAdapter(T[] array)
array - | Method Detail |
|---|
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()
protected abstract IModel<T> model(T object)
object - object to be wrapped
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||