com.ibm.portal
Interface IterableListModel<E>
- All Superinterfaces:
- java.lang.Iterable<E>, ListModel<E>
- All Known Subinterfaces:
- MultipartStream.Entry, WireModel<T>, WireModelController<T,M>
- All Known Implementing Classes:
- DefaultMultipartEntry
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 interator over elements of the list.
|
iterator
java.util.Iterator<E> iterator()
- Returns an interator 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