Module org.apache.wicket.core
Class ArrayIteratorAdapter<T>
java.lang.Object
org.apache.wicket.markup.repeater.util.ArrayIteratorAdapter<T>
- Type Parameters:
T
- type of array element
Iterator over an array. Implementation must provide
model(Object)
method to wrap each item in a model before it is returned through
next()
method.- Author:
- Igor Vaynberg (ivaynberg)
-
Constructor Details
-
ArrayIteratorAdapter
Constructor- Parameters:
array
-
-
-
Method Details
-
remove
-
hasNext
-
next
-
reset
Resets the iterator position back to the beginning of the array -
model
This method is used to wrap the provided object with an implementation of IModel. The provided object is guaranteed to be returned from the delegate iterator.- Parameters:
object
- object to be wrapped- Returns:
- IModel wrapper for the object
-