io.sphere.sdk.search.SimpleSortExpression Maven / Gradle / Ivy
package io.sphere.sdk.search;
final class SimpleSortExpression extends SimpleBaseExpression implements SortExpression {
private final String sphereSortExpression;
SimpleSortExpression(final String sphereSortExpression) {
this.sphereSortExpression = sphereSortExpression;
}
@Override
public String expression() {
return sphereSortExpression;
}
@Override
protected String pattern() {
return "^(?[^\\s]*) (?(asc|desc)(\\.(max|min))?)$";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy