io.sphere.sdk.queries.LocalizedStringQuerySortingModelImpl Maven / Gradle / Ivy
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