fr.ouestfrance.querydsl.postgrest.mappers.LessThanMapper Maven / Gradle / Ivy
package fr.ouestfrance.querydsl.postgrest.mappers;
import fr.ouestfrance.querydsl.FilterOperation;
import fr.ouestfrance.querydsl.postgrest.model.Filter;
import fr.ouestfrance.querydsl.postgrest.model.impl.QueryFilter;
/**
* Concrete mapping for lessThan
*/
public class LessThanMapper extends AbstractMapper {
@Override
public Filter getFilter(String field, Object value) {
return QueryFilter.of(field, Operators.LESS_THAN, value);
}
@Override
public Class extends FilterOperation> operation() {
return FilterOperation.LT.class;
}
}