io.sphere.sdk.search.model.LocalizedStringFacetSearchModel Maven / Gradle / Ivy
package io.sphere.sdk.search.model;
import javax.annotation.Nullable;
import java.util.Locale;
public class LocalizedStringFacetSearchModel extends SearchModelImpl {
LocalizedStringFacetSearchModel(@Nullable final SearchModel parent, @Nullable final String pathSegment) {
super(parent, pathSegment);
}
public TermFacetSearchModel locale(final Locale locale) {
return new StringSearchModel<>(this, locale.toLanguageTag()).faceted();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy