fr.ouestfrance.querydsl.postgrest.mappers.GreaterThanEqualsMapper 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 greaterThanEquals
*/
public class GreaterThanEqualsMapper extends AbstractMapper {
@Override
public Filter getFilter(String field, Object value) {
return QueryFilter.of(field, Operators.GREATER_THAN_EQUALS, value);
}
@Override
public Class extends FilterOperation> operation() {
return FilterOperation.GTE.class;
}
}