Module MaterialFX

Class FilterBean<T,U>

java.lang.Object
io.github.palexdev.materialfx.beans.FilterBean<T,U>
Type Parameters:
T - the type of objects to filter
U - the type of objects on which the BiPredicate operates

public class FilterBean<T,U> extends Object
A simple bean that has all the necessary information to produce a Predicate for a given T object type.

It wraps the following data:

- A String which is the query

- An object of type AbstractFilter, which is effectively responsible for producing the Predicate

- A BiPredicateBean, which is used by AbstractFilter, see AbstractFilter.predicateFor(String) or AbstractFilter.predicateFor(String, BiPredicate)

- A ChainMode enumeration to specify how this filter should be combined with other filters