class DataProvider {

    public boolean contains(T item) {
        return allItems.containsKey(identifier.apply(item));
    }

    public  DataProvider(Function<T, String> identifier, boolean multiSelect);
      DataProvider(Function<T, String> identifier, boolean multiSelect, int pageSize);

}