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 LocalizedEnumValueBuilder
builder()
builder factory method for LocalizedEnumValuestatic LocalizedEnumValueBuilder
builder
(LocalizedEnumValue template) create builder for LocalizedEnumValue instancestatic LocalizedEnumValue
deepCopy
(LocalizedEnumValue template) factory method to create a deep copy of LocalizedEnumValue@NotNull String
getKey()
Key of the value used as a programmatic identifier.@NotNull @Valid LocalizedString
getLabel()
Descriptive localized label of the value.static LocalizedEnumValue
of()
factory methodstatic LocalizedEnumValue
of
(LocalizedEnumValue template) factory method to create a shallow copy LocalizedEnumValuevoid
Key of the value used as a programmatic identifier.void
setLabel
(LocalizedString label) Descriptive localized label of the value.static com.fasterxml.jackson.core.type.TypeReference<LocalizedEnumValue>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withLocalizedEnumValue
(Function<LocalizedEnumValue, T> helper) accessor map function
-
Method Details
-
getKey
Key of the value used as a programmatic identifier.
- Returns:
- key
-
getLabel
Descriptive localized label of the value.
- Returns:
- label
-
setKey
Key of the value used as a programmatic identifier.
- Parameters:
key
- value to be set
-
setLabel
Descriptive localized label of the value.
- 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
-
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
-