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

org.joo.libra.common.CompositionPredicate Maven / Gradle / Ivy

package org.joo.libra.common;

import org.joo.libra.Predicate;
import org.joo.libra.logic.AndPredicate;
import org.joo.libra.logic.NotPredicate;
import org.joo.libra.logic.OrPredicate;

public abstract class CompositionPredicate implements Predicate {

	public Predicate And(Predicate other) {
		return new AndPredicate(this, other);
	}

	public Predicate Or(Predicate other) {
		return new OrPredicate(this, other);
	}

	public Predicate Not() {
		return new NotPredicate(this);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy