Interface Suggestion
public interface Suggestion
Suggestion
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
Suggestion suggestion = Suggestion.builder()
.text("{text}")
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic SuggestionBuilder
builder()
builder factory method for Suggestionstatic SuggestionBuilder
builder
(Suggestion template) create builder for Suggestion instancestatic Suggestion
deepCopy
(Suggestion template) factory method to create a deep copy of Suggestion@NotNull String
getText()
The suggested text.static Suggestion
of()
factory methodstatic Suggestion
of
(Suggestion template) factory method to create a shallow copy Suggestionvoid
The suggested text.static com.fasterxml.jackson.core.type.TypeReference<Suggestion>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withSuggestion
(Function<Suggestion, T> helper) accessor map function
-
Method Details
-
getText
The suggested text.
- Returns:
- text
-
setText
The suggested text.
- Parameters:
text
- value to be set
-
of
factory method- Returns:
- instance of Suggestion
-
of
factory method to create a shallow copy Suggestion- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of Suggestion- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for Suggestion- Returns:
- builder
-
builder
create builder for Suggestion instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withSuggestion
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
-