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

org.joo.libra.pointer.IsNullPredicate Maven / Gradle / Ivy

There is a newer version: 2.1.2
Show newest version
package org.joo.libra.pointer;

import org.joo.libra.PredicateContext;
import org.joo.libra.common.CompositionPredicate;
import org.joo.libra.common.HasValue;

public class IsNullPredicate extends CompositionPredicate {

	private HasValue value;

	public IsNullPredicate(HasValue value) {
		this.value = value;
	}

	@Override
	public boolean satisfiedBy(PredicateContext context) {
		return value == null;
	}
}