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 SuggestionResultBuilder
builder()
builder factory method for SuggestionResultstatic SuggestionResultBuilder
builder
(SuggestionResult template) create builder for SuggestionResult instancestatic SuggestionResult
deepCopy
(SuggestionResult template) factory method to create a deep copy of SuggestionResultstatic SuggestionResult
of()
factory methodstatic SuggestionResult
of
(SuggestionResult template) factory method to create a shallow copy SuggestionResultvoid
setValue
(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> T
withSuggestionResult
(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
-
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
-