public final class FilterUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static <F,Q,C> F |
combineFilters(SerializableBiFunction<Q,C,F> filterCombiner,
Q queryFilter,
C configuredFilter)
Combines the configured filter and the filter from the query into one
filter instance that can be passed to the wrapped data provider using the
filterCombiner. |
static <T,C,F> F |
convertFilter(SerializableFunction<C,F> filterConverter,
Query<T,C> query)
Gets the filter converted from a query filter by the
filterConverter. |
public static <F,Q,C> F combineFilters(SerializableBiFunction<Q,C,F> filterCombiner, Q queryFilter, C configuredFilter)
filterCombiner.F - the filter type of the wrapped data providerQ - the query filter typeC - the configurable filter typefilterCombiner - a filters combinerqueryFilter - a query filterconfiguredFilter - a configured filterpublic static <T,C,F> F convertFilter(SerializableFunction<C,F> filterConverter, Query<T,C> query)
filterConverter.C - the filter type that the wrapped data provider accepts;
typically provided by a ComponentfilterConverter - callback that converts the filter in the query of the wrapped
data provider into a filter supported by this data provider.
Will only be called if the query contains a filter. Not
nullquery - a query with a filter to convertnull if the query has no
filterCopyright © 2025. All rights reserved.