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

li.strolch.search.predicates.IsEmptyPredicate Maven / Gradle / Ivy

The newest version!
package li.strolch.search.predicates;

import li.strolch.utils.ObjectHelper;

/**
 * Implements the is empty predicate, delegating to {@link ObjectHelper#equals(Object, Object, boolean)}
 */
public class IsEmptyPredicate extends AbstractSearchPredicate {

	public IsEmptyPredicate() {
		super(null);
	}

	@Override
	public boolean matches(Object left) {
		return ObjectHelper.isEmpty(left);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy