All Downloads are FREE. Search and download functionalities are using the official Maven repository.

devutility.internal.data.SearchHelper Maven / Gradle / Ivy

There is a newer version: 1.3.8.1
Show newest version
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