Class IterableDataModel<E>

java.lang.Object
jakarta.faces.model.DataModel<E>
jakarta.faces.model.IterableDataModel<E>
All Implemented Interfaces:
Iterable<E>

public class IterableDataModel<E> extends DataModel<E>

IterableDataModel is an implementation of DataModel that wraps an Iterable.

This can be used to encapsulate nearly every collection type, including Collection derived types such as List and Set. As such this specific DataModel can be used instead of more specific DataModels like ListDataModel and CollectionDataModel.