com.vaadin.data.

Interface Container.Filter

    • Method Summary

      All Methods
      Modifier and Type Method Description
      boolean appliesToProperty​(Object propertyId)

      Check if a change in the value of a property can affect the filtering result.

      boolean passesFilter​(Object itemId, Item item)

      Check if an item passes the filter (in-memory filtering).

    • Method Detail

      • passesFilter

        boolean passesFilter​(Object itemId,
                             Item item)
                      throws UnsupportedOperationException

        Check if an item passes the filter (in-memory filtering).

        Parameters:

        itemId - identifier of the item being filtered; may be null when the item is being added to the container

        item - the item being filtered

        Returns:

        true if the item is accepted by this filter

        Throws:

        UnsupportedOperationException - if the filter cannot be used for in-memory filtering

      • appliesToProperty

        boolean appliesToProperty​(Object propertyId)

        Check if a change in the value of a property can affect the filtering result. May always return true, at the cost of performance. If the filter cannot determine whether it may depend on the property or not, should return true.

        Parameters:

        propertyId -

        Returns:

        true if the filtering result may/does change based on changes to the property identified by propertyId