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

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

There is a newer version: 2.1.2
Show newest version
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