All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.mantledillusion.vaadin.cotton.model.InMemoryDataProviderBinding Maven / Gradle / Ivy

Go to download

Cotton is a Vaadin extension destined for the ultimate of developer convenience.

There is a newer version: 2.3.4
Show newest version
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy