devutility.internal.data.SearchHelper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of devutility.internal Show documentation
Show all versions of devutility.internal Show documentation
Utilities for Java development
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