devutility.internal.models.BaseSearchParam Maven / Gradle / Ivy
package devutility.internal.models;
import devutility.internal.util.function.PredicateBuilder;
public abstract class BaseSearchParam {
protected PredicateBuilder predicateBuilder = new PredicateBuilder<>();
public boolean isEmpty() {
if (!predicateBuilder.isHasPredicate()) {
buildPredicate();
}
return !predicateBuilder.isHasPredicate();
}
public PredicateBuilder getPredicateBuilder() {
if (!predicateBuilder.isHasPredicate()) {
buildPredicate();
}
return predicateBuilder;
}
protected abstract void buildPredicate();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy