@JsonIgnore static SearchKeywords of(final Locale locale, final List<SearchKeyword> keywords) { return of(mapOf(locale, keywords)); }
/** * Creates an instance for two different locales. * * {@include.example io.sphere.sdk.models.LocalizedStringTest#createFromTwoValues()} * * @param locale1 the first locale * @param value1 the translation corresponding to {@code locale1} * @param locale2 the second locale which differs from {@code locale1} * @param value2 the translation corresponding to {@code locale2} * @return new instance for two key value pairs */ @JsonIgnore public static LocalizedString of(final Locale locale1, final String value1, final Locale locale2, final String value2) { return of(mapOf(locale1, value1, locale2, value2)); }
/** * Creates an instance with one locale translation pair. * * {@include.example io.sphere.sdk.models.LocalizedStringTest#createFromOneValue()} * * @param locale the locale for the one translation * @param value the translation for the specified locale * @return translation for one language */ @JsonIgnore public static LocalizedString of(final Locale locale, final String value) { requireNonNull(locale); requireNonNull(value); return of(mapOf(locale, value)); }