devutility.internal.data.SearchHelper Maven / Gradle / Ivy
package devutility.internal.data;
import java.util.List;
import devutility.internal.models.BaseSearchParam;
import devutility.internal.util.CollectionUtils;
import devutility.internal.util.function.PredicateBuilder;
public class SearchHelper {
public static List search(List list, BaseSearchParam searchParam) {
PredicateBuilder predicateBuilder = searchParam.getPredicateBuilder();
if (!predicateBuilder.isHasPredicate()) {
return list;
}
return CollectionUtils.parallelList(list, predicateBuilder.getPredicate());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy