com.dooapp.gaedo.finders.collections.CollectionContainingEvaluator Maven / Gradle / Ivy
package com.dooapp.gaedo.finders.collections;
import java.util.Collection;
import com.dooapp.gaedo.properties.Property;
public class CollectionContainingEvaluator extends AbstractBasicContainingEvaluator implements Evaluator {
public CollectionContainingEvaluator(Property field, Object contained) {
super(field, contained);
}
@Override
public boolean matches(DataType element) {
Collection> value = (Collection>) getValue(element);
return value.contains(contained);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy