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

com.dooapp.gaedo.finders.collections.NotEvaluator Maven / Gradle / Ivy

There is a newer version: 1.0.16
Show newest version
package com.dooapp.gaedo.finders.collections;

/**
 * Reverse evaluator. This evaluator simply inverst result of contained evaluator
 * @author ndx
 *
 */
class NotEvaluator implements Evaluator {
	/**
	 * Inner evaluator, which result will be reverted
	 */
	public Evaluator inner;

	public void add(Evaluator e) {
		inner=e;
	}

	public boolean matches(DataType element) {
		return !inner.matches(element);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy