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

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

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

import java.util.LinkedList;
import java.util.List;

/**
 * Evaluator used to combine with a and a list of others evaluators
 * @author ndx
 *
 */
class AndEvaluator implements Evaluator {
	public List> inner = new LinkedList>();

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

	public boolean matches(DataType element) {
		boolean result = true;
		for(Evaluator e : inner) {
			result&=e.matches(element);
		}
		return result;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy