com.vaadin.flow.component.combobox.

Interface ComboBoxBase.SpringData.CountCallback<PAGEABLE>

All Superinterfaces:

Serializable

Enclosing interface:

ComboBoxBase.SpringData

Functional Interface:

This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface ComboBoxBase.SpringData.CountCallback<PAGEABLE> extends Serializable

Callback interface for counting the number of items in a backend based on a Spring Data Pageable and a filter string.

  • Method Summary

    Modifier and Type
    Method
    Description
    long
    count(PAGEABLE pageable, String filterString)

    Counts the number of available items based on a pageable and a filter string.

  • Method Details

    • count

      long count(PAGEABLE pageable, String filterString)

      Counts the number of available items based on a pageable and a filter string. The pageable defines the paging of the items to fetch and the sorting and is provided although it is generally not needed for determining the number of items.

      Parameters:

      pageable - the pageable that defines which items to fetch and the sort order

      filterString - the filter string provided by the ComboBox

      Returns:

      the number of available items