Interface LocalizedString
public interface LocalizedString
LocalizedString
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
LocalizedString localizedString = LocalizedString.builder()
./^[a-z]{2}(-[A-Z]{2})?$/("{/^[a-z]{2}(-[A-Z]{2})?$/}")
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic LocalizedStringBuilder
builder()
builder factory method for LocalizedStringstatic LocalizedStringBuilder
builder
(LocalizedString template) create builder for LocalizedString instancestatic LocalizedString
deepCopy
(LocalizedString template) factory method to create a deep copy of LocalizedStringstatic LocalizedString
of()
factory methodstatic LocalizedString
of
(LocalizedString template) factory method to create a shallow copy LocalizedStringvoid
set pattern propertystatic com.fasterxml.jackson.core.type.TypeReference<LocalizedString>
gives a TypeReference for usage with Jackson DataBindvalues()
default <T> T
withLocalizedString
(Function<LocalizedString, T> helper) accessor map function
-
Method Details
-
values
- Returns:
- map of the pattern property values
-
setValue
set pattern property- Parameters:
key
- property namevalue
- property value
-
of
factory method- Returns:
- instance of LocalizedString
-
of
factory method to create a shallow copy LocalizedString- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of LocalizedString- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for LocalizedString- Returns:
- builder
-
builder
create builder for LocalizedString instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withLocalizedString
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
-