All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.sphere.sdk.search.SimpleSortExpression Maven / Gradle / Ivy

There is a newer version: 1.0.0-M26
Show newest version
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