public final class
A utility for performing in memory filtering on collections. This is not performance efficient, since its done on the application level. Filtering at the database level is advised.
public static <T> List<T>
filter(Collection<T> objects, QueryParams queryParams)¶
Filters the provided collection based on the provided query params.
- objects – the collection to filter
- queryParams – the query params with the ordering and paging information to apply
- <T> – the type of the filtered collection
the filtered, ordered list of objects from the original collection