Interface LocalizedLabel
- All Superinterfaces:
Label
LocalizedLabel
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
LocalizedLabel localizedLabel = LocalizedLabel.builder()
.value(valueBuilder -> valueBuilder)
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic LocalizedLabelBuilder
builder()
builder factory method for LocalizedLabelstatic LocalizedLabelBuilder
builder
(LocalizedLabel template) create builder for LocalizedLabel instancestatic LocalizedLabel
deepCopy
(LocalizedLabel template) factory method to create a deep copy of LocalizedLabel@NotNull String
getType()
@NotNull @Valid LocalizedString
getValue()
Changed value.static LocalizedLabel
of()
factory methodstatic LocalizedLabel
of
(LocalizedLabel template) factory method to create a shallow copy LocalizedLabelvoid
setValue
(LocalizedString value) Changed value.static com.fasterxml.jackson.core.type.TypeReference<LocalizedLabel>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withLocalizedLabel
(Function<LocalizedLabel, T> helper) accessor map function
-
Field Details
-
LOCALIZED_LABEL
discriminator value for LocalizedLabel- See Also:
-
-
Method Details
-
getType
-
getValue
Changed value.
- Returns:
- value
-
setValue
Changed value.
- Parameters:
value
- value to be set
-
of
factory method- Returns:
- instance of LocalizedLabel
-
of
factory method to create a shallow copy LocalizedLabel- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of LocalizedLabel- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for LocalizedLabel- Returns:
- builder
-
builder
create builder for LocalizedLabel instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withLocalizedLabel
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
-