com.mantledillusion.vaadin.cotton.model.InMemoryDataProviderBinding Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cotton Show documentation
Show all versions of cotton Show documentation
Cotton is a Vaadin extension destined for the ultimate of developer convenience.
package com.mantledillusion.vaadin.cotton.model;
import com.vaadin.flow.data.provider.InMemoryDataProvider;
import java.util.function.Supplier;
/**
* A specific type of {@link Binding} to a {@link InMemoryDataProvider}.
*
* @param The element type of the {@link InMemoryDataProvider}.
*/
public abstract class InMemoryDataProviderBinding extends Binding {
private final InMemoryDataProvider dataProvider;
InMemoryDataProviderBinding(Auditor baseAuditor, InMemoryDataProvider dataProvider) {
super(baseAuditor);
this.dataProvider = dataProvider;
}
/**
* Returns the bound {@link InMemoryDataProvider}.
*
* @return The {@link InMemoryDataProvider}, never null
*/
public InMemoryDataProvider getDataProvider() {
return dataProvider;
}
}