Interface SuggestionResult
public interface SuggestionResult
SuggestionResult
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
SuggestionResult suggestionResult = SuggestionResult.builder()
.plus/searchKeywords.[a-z]{2}(-[A-Z]{2})?/(/searchKeywords.[a-z]{2}(-[A-Z]{2})?/Builder -> /searchKeywords.[a-z]{2}(-[A-Z]{2})?/Builder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic SuggestionResultBuilderbuilder()builder factory method for SuggestionResultstatic SuggestionResultBuilderbuilder(SuggestionResult template) create builder for SuggestionResult instancecopyDeep()static SuggestionResultdeepCopy(SuggestionResult template) factory method to create a deep copy of SuggestionResultstatic SuggestionResultof()factory methodstatic SuggestionResultof(SuggestionResult template) factory method to create a shallow copy SuggestionResultvoidsetValue(String key, List<Suggestion> value) The result may contain multiple Suggestions identified by their Locale.static com.fasterxml.jackson.core.type.TypeReference<SuggestionResult>gives a TypeReference for usage with Jackson DataBind@NotNull @Valid Map<String,List<Suggestion>> values()The result may contain multiple Suggestions identified by their Locale.default <T> TwithSuggestionResult(Function<SuggestionResult, T> helper) accessor map function
-
Method Details
-
values
The result may contain multiple Suggestions identified by their Locale. See Suggestions for two languages.
- Returns:
- map of the pattern property values
-
setValue
The result may contain multiple Suggestions identified by their Locale. See Suggestions for two languages.
- Parameters:
key- property namevalue- property value
-
of
factory method- Returns:
- instance of SuggestionResult
-
of
factory method to create a shallow copy SuggestionResult- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
SuggestionResult copyDeep() -
deepCopy
factory method to create a deep copy of SuggestionResult- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for SuggestionResult- Returns:
- builder
-
builder
create builder for SuggestionResult instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withSuggestionResult
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
-