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

io.sphere.sdk.products.SuggestionResult Maven / Gradle / Ivy

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