public interface LocalizedEnumValue
LocalizedEnumValue localizedEnumValue = LocalizedEnumValue.builder()
.key("{key}")
.label(labelBuilder -> labelBuilder)
.build()
Modifier and Type | Method and Description |
---|---|
static LocalizedEnumValueBuilder |
builder() |
static LocalizedEnumValueBuilder |
builder(LocalizedEnumValue template) |
@NotNull String |
getKey() |
@NotNull @Valid LocalizedString |
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.
|
static LocalizedEnumValue |
of() |
static LocalizedEnumValue |
of(LocalizedEnumValue template) |
void |
setKey(String key) |
void |
setLabel(LocalizedString label) |
static com.fasterxml.jackson.core.type.TypeReference<LocalizedEnumValue> |
typeReference() |
default <T> T |
withLocalizedEnumValue(Function<LocalizedEnumValue,T> helper) |
@NotNull @NotNull String getKey()
@NotNull @Valid @NotNull @Valid LocalizedString 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"
}
void setKey(String key)
void setLabel(LocalizedString label)
static LocalizedEnumValue of()
static LocalizedEnumValue of(LocalizedEnumValue template)
static LocalizedEnumValueBuilder builder()
static LocalizedEnumValueBuilder builder(LocalizedEnumValue template)
default <T> T withLocalizedEnumValue(Function<LocalizedEnumValue,T> helper)
static com.fasterxml.jackson.core.type.TypeReference<LocalizedEnumValue> typeReference()