Interface LocalizedEnumValue
public interface LocalizedEnumValue
LocalizedEnumValue
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
LocalizedEnumValue localizedEnumValue = LocalizedEnumValue.builder()
.key("{key}")
.label(labelBuilder -> labelBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic LocalizedEnumValueBuilderbuilder()builder factory method for LocalizedEnumValuestatic LocalizedEnumValueBuilderbuilder(LocalizedEnumValue template) create builder for LocalizedEnumValue instancecopyDeep()static LocalizedEnumValuedeepCopy(LocalizedEnumValue template) factory method to create a deep copy of LocalizedEnumValue@NotNull StringgetKey()@NotNull @Valid LocalizedStringgetLabel()A localized string is a JSON object where the keys are of IETF language tag, and the values the corresponding strings used for that language.static LocalizedEnumValueof()factory methodstatic LocalizedEnumValueof(LocalizedEnumValue template) factory method to create a shallow copy LocalizedEnumValuevoidset keyvoidsetLabel(LocalizedString label) A localized string is a JSON object where the keys are of IETF language tag, and the values the corresponding strings used for that language.static com.fasterxml.jackson.core.type.TypeReference<LocalizedEnumValue>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithLocalizedEnumValue(Function<LocalizedEnumValue, T> helper) accessor map function
-
Method Details
-
getKey
- Returns:
- key
-
getLabel
A localized string is a JSON object where the keys are of IETF language tag, and the values the corresponding strings used for that language.
{ "de": "Hundefutter", "en": "dog food" }- Returns:
- label
-
setKey
set key- Parameters:
key- value to be set
-
setLabel
A localized string is a JSON object where the keys are of IETF language tag, and the values the corresponding strings used for that language.
{ "de": "Hundefutter", "en": "dog food" }- Parameters:
label- value to be set
-
of
factory method- Returns:
- instance of LocalizedEnumValue
-
of
factory method to create a shallow copy LocalizedEnumValue- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
LocalizedEnumValue copyDeep() -
deepCopy
factory method to create a deep copy of LocalizedEnumValue- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for LocalizedEnumValue- Returns:
- builder
-
builder
create builder for LocalizedEnumValue instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withLocalizedEnumValue
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
-