com.dooapp.gaedo.finders.collections.ContainsStringEvaluator 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.lang.reflect.Field;
import com.dooapp.gaedo.properties.Property;
public class ContainsStringEvaluator extends AbstractBasicEvaluator
implements Evaluator {
private String contained;
public ContainsStringEvaluator(Property fieldName, String contained) {
super(fieldName);
this.contained = contained;
}
@Override
public boolean matches(DataType element) {
String value = (String) getValue(element);
return value.contains(contained);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy