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

io.sphere.sdk.queries.LocalizedStringQuerySortingModelImpl Maven / Gradle / Ivy

There is a newer version: 1.0.0-M26
Show newest version
package io.sphere.sdk.queries;

import javax.annotation.Nullable;
import java.util.Locale;

final class LocalizedStringQuerySortingModelImpl extends QueryModelImpl implements LocalizedStringQuerySortingModel {
    public LocalizedStringQuerySortingModelImpl(@Nullable final QueryModel parent, @Nullable final String pathSegment) {
        super(parent, pathSegment);
    }

    @Override
    public StringQuerySortingModel lang(final Locale locale) {
        return locale(locale);
    }

    @Override
    public StringQuerySortingModel locale(final Locale locale) {
        return stringModel(locale.toLanguageTag());
    }

    public static  LocalizedStringQuerySortingModel of(@Nullable final QueryModel queryModel, @Nullable final String pathSegment) {
        return new LocalizedStringQuerySortingModelImpl<>(queryModel, pathSegment);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy