com.ibm.portal
Interface ListModel<E>

All Known Subinterfaces:
CompositionMetrics, InvalidatableListModel<T>, IterableListModel<E>, LanguageList<E>, LayoutMetrics, ListModelController<T,M>, MarkupList<T>, MetaData<V,E>, ModifiableLayoutMetrics, ModifiableMetaData, ModifiablePortletPreferences, MultipartStream.Entry, NavigationSelectionModel<E>, OrderedListModelController<T,M>, PagedListModel<E>, com.ibm.portal.portletmodel.admin">PortletDefinitionList, PortletList, PortletPreferences<E>, SearchableListModel<T>, SelectionModel<T>, SkinList<T>, ThemeList<T>, WebApplicationList, WireModel<T>, WireModelController<T,M>
All Known Implementing Classes:
DefaultMultipartEntry

public interface ListModel<E>

A model representing a list. It supplies a method to iterate over elements of the list. The order of elements returned by this list modelīs iterator cannot be guaranteed.

If an implementation overrides the #equals(Object) and #hashCode() method the hash code should be computed according to List.hashCode().

Since:
5.1

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

Method Detail

iterator

java.util.Iterator<E> iterator()
                               throws ModelException
Returns an interator over elements of the list.

Returns:
an iterator
Throws:
ModelException - if creation of iterator fails