com.dooapp.gaedo.finders.collections.AndEvaluator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gaedo-collections Show documentation
Show all versions of gaedo-collections Show documentation
Contains the collections implementation, and only depend upon gaedo-definition
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