com.dooapp.gaedo.finders.collections.EqualsToIgnoreCaseEvaluator Maven / Gradle / Ivy
package com.dooapp.gaedo.finders.collections;
import com.dooapp.gaedo.properties.Property;
public class EqualsToIgnoreCaseEvaluator extends AbstractBasicEvaluator implements Evaluator {
private String compared;
public EqualsToIgnoreCaseEvaluator(Property field, String compared) {
super(field);
this.compared = compared;
}
@Override
public boolean matches(DataType element) {
String value = (String) getValue(element);
return value.equalsIgnoreCase(compared);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy