net.anotheria.anodoc.query2.QueryStartsWithProperty Maven / Gradle / Ivy
package net.anotheria.anodoc.query2;
public class QueryStartsWithProperty extends QueryProperty{
public QueryStartsWithProperty(String aName, Object aValue){
super(aName, aValue);
}
public String getComparator(){
return " like ";
}
@Override
public Object getValue() {
return super.getValue()+"%";
}
public boolean doesMatch(Object o){
return o== null ?getOriginalValue() == null :
o.toString().startsWith(getOriginalValue().toString());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy