Class ListDataProvider<T>

java.lang.Object
com.vaadin.flow.data.provider.AbstractDataProvider<T,com.vaadin.flow.function.SerializablePredicate<T>>
com.vaadin.flow.data.provider.ListDataProvider<T>
Type Parameters:
T - data type
All Implemented Interfaces:
ConfigurableFilterDataProvider<T,com.vaadin.flow.function.SerializablePredicate<T>,com.vaadin.flow.function.SerializablePredicate<T>>, DataProvider<T,com.vaadin.flow.function.SerializablePredicate<T>>, InMemoryDataProvider<T>, Serializable
Direct Known Subclasses:
DataCommunicator.EmptyDataProvider

public class ListDataProvider<T> extends AbstractDataProvider<T,com.vaadin.flow.function.SerializablePredicate<T>> implements InMemoryDataProvider<T>
DataProvider wrapper for Collections.
Since:
1.0
See Also:
  • Constructor Details

    • ListDataProvider

      public ListDataProvider(Collection<T> items)
      Constructs a new ListDataProvider.

      No protective copy is made of the list, and changes in the provided backing Collection will be visible via this data provider. The caller should copy the list if necessary.

      Parameters:
      items - the initial data, not null
  • Method Details