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

devutility.internal.models.BaseSearchParam Maven / Gradle / Ivy

There is a newer version: 1.3.8.1
Show newest version
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 - 2024 Weber Informatics LLC | Privacy Policy