Interface SearchKeywords
public interface SearchKeywords
Search keywords are JSON objects primarily used by Search Term Suggestions, but are also considered for a full text search in the Product Projection Search API. The keys are of type Locale, and the values are an array of SearchKeyword.
Example to create an instance using the builder pattern
SearchKeywords searchKeywords = SearchKeywords.builder()
.plus/^[a-z]{2}(-[A-Z]{2})?$/(/^[a-z]{2}(-[A-Z]{2})?$/Builder -> /^[a-z]{2}(-[A-Z]{2})?$/Builder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic SearchKeywordsBuilder
builder()
builder factory method for SearchKeywordsstatic SearchKeywordsBuilder
builder
(SearchKeywords template) create builder for SearchKeywords instancecopyDeep()
static SearchKeywords
deepCopy
(SearchKeywords template) factory method to create a deep copy of SearchKeywordsstatic SearchKeywords
of()
factory methodstatic SearchKeywords
of
(SearchKeywords template) factory method to create a shallow copy SearchKeywordsvoid
setValue
(String key, List<SearchKeyword> value) Key-value pair where the keys are of type Locale and the values are an array of SearchKeyword.static com.fasterxml.jackson.core.type.TypeReference<SearchKeywords>
gives a TypeReference for usage with Jackson DataBind@NotNull @Valid Map<String,
List<SearchKeyword>> values()
Key-value pair where the keys are of type Locale and the values are an array of SearchKeyword.default <T> T
withSearchKeywords
(Function<SearchKeywords, T> helper) accessor map function
-
Method Details
-
values
Key-value pair where the keys are of type Locale and the values are an array of SearchKeyword.
- Returns:
- map of the pattern property values
-
setValue
Key-value pair where the keys are of type Locale and the values are an array of SearchKeyword.
- Parameters:
key
- property namevalue
- property value
-
of
factory method- Returns:
- instance of SearchKeywords
-
of
factory method to create a shallow copy SearchKeywords- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
copyDeep
SearchKeywords copyDeep() -
deepCopy
factory method to create a deep copy of SearchKeywords- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for SearchKeywords- Returns:
- builder
-
builder
create builder for SearchKeywords instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withSearchKeywords
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-