devutility.internal.models.BaseSearchParam 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.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