com.ibm.portal
Interface IterableListModel<E>

All Superinterfaces:
java.lang.Iterable<E>, ListModel<E>
All Known Subinterfaces:
CommandFactory, CountableIterableListModel<E>, CountableIterablePagedListModel<E>, DeviceClassModel<E>, DialogModel<T>, LocalizedContext, MultipartStream.Entry, PortletLocalizedContext, PublicRenderParameterList<T>, SortedLocalized<T>, SortedLocalizedListModel<T>, TransitionEndpointModel<T>, TransitionModel<T>, WireModel<T>, WireModelController<T,M>
All Known Implementing Classes:
DefaultMultipartEntry, FormDataInputStream.Entry, MultipartInputStream.Entry

public interface IterableListModel<E>
extends ListModel<E>, java.lang.Iterable<E>

A model representing a list. It supplies a method to iterate over elements of the list. This interface allows to provide ListModel implementations while maintaining compatibility with the Java 5 generics and enhanced for loop extensions.

Since:
6.1

Method Summary
 java.util.Iterator<E> iterator()
          Returns an iterator over elements of the list.
 

Method Detail

iterator

java.util.Iterator<E> iterator()
Returns an iterator over elements of the list. To be compatible with both ListModel and java.util.Iterable, this method does not declare any exceptions

Specified by:
iterator in interface java.lang.Iterable<E>
Specified by:
iterator in interface ListModel<E>
Returns:
an iterator