Class 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.

    Since:
    1.5
    Author:
    Arjan.Tijms
    • Constructor Detail

      • IterableDataModel

        public IterableDataModel​(Iterable<E> iterable)
        Construct the iterable data model based on the given iterable instance.
        Parameters:
        iterable - The iterable instance to construct the iterable data model for.