com.ibm.portal
Interface ListModel<E>

All Known Subinterfaces:
IterableListModel<E>, SearchableIterableListModel<E>, com.ibm.portal.SearchableListModel<T>

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 Iterator over elements of the list.
 

Method Detail

iterator

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

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