io.sphere.sdk.products.SuggestionResult Maven / Gradle / Ivy
package io.sphere.sdk.products;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import javax.annotation.Nonnull;
import java.util.List;
import java.util.Locale;
import java.util.Map;
@JsonDeserialize(as = SuggestionResultImpl.class)
public interface SuggestionResult {
@Nonnull
List getSuggestionsForLocale(Locale locale);
Map> getSuggestionsMap();
@JsonIgnore
static SuggestionResult of(final Map> suggestions) {
return SuggestionResultImpl.of(suggestions);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy