Class Filter<T>

java.lang.Object
com.vaadin.flow.component.grid.Filter<T>
Type Parameters:
T - type of the underlying grid this filter is compatible with

public class Filter<T> extends Object
Filter class to set a filter predicate to a grid in lazy loading mode.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor.
    Filter(com.vaadin.flow.function.SerializablePredicate<T> filterPredicate)
    Constructor with filter predicate.
  • Method Summary

    Modifier and Type
    Method
    Description
    com.vaadin.flow.function.SerializablePredicate<T>
    Get the filter predicate.
    void
    setFilterPredicate(com.vaadin.flow.function.SerializablePredicate<T> filterPredicate)
    Set the filter predicate.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Filter

      public Filter()
      Default constructor.
    • Filter

      public Filter(com.vaadin.flow.function.SerializablePredicate<T> filterPredicate)
      Constructor with filter predicate.
      Parameters:
      filterPredicate - the filter predicate to set
  • Method Details

    • getFilterPredicate

      public com.vaadin.flow.function.SerializablePredicate<T> getFilterPredicate()
      Get the filter predicate.
      Returns:
      the filter predicate
    • setFilterPredicate

      public void setFilterPredicate(com.vaadin.flow.function.SerializablePredicate<T> filterPredicate)
      Set the filter predicate.
      Parameters:
      filterPredicate - the filter predicate to set