Interface AttributePlainEnumValue
- All Superinterfaces:
WithKey
A plain enum value must be unique within the enum, else a DuplicateEnumValues error is returned.
Example to create an instance using the builder pattern
AttributePlainEnumValue attributePlainEnumValue = AttributePlainEnumValue.builder()
.key("{key}")
.label("{label}")
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for AttributePlainEnumValuebuilder
(AttributePlainEnumValue template) create builder for AttributePlainEnumValue instancestatic AttributePlainEnumValue
deepCopy
(AttributePlainEnumValue template) factory method to create a deep copy of AttributePlainEnumValue@NotNull String
getKey()
Key of the value used as a programmatic identifier, for example in facets & filters.@NotNull String
getLabel()
Descriptive label of the value.static AttributePlainEnumValue
of()
factory methodstatic AttributePlainEnumValue
of
(AttributePlainEnumValue template) factory method to create a shallow copy AttributePlainEnumValuevoid
Key of the value used as a programmatic identifier, for example in facets & filters.void
Descriptive label of the value.static com.fasterxml.jackson.core.type.TypeReference<AttributePlainEnumValue>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map function
-
Method Details
-
getKey
Key of the value used as a programmatic identifier, for example in facets & filters.
-
getLabel
Descriptive label of the value.
- Returns:
- label
-
setKey
Key of the value used as a programmatic identifier, for example in facets & filters.
- Parameters:
key
- value to be set
-
setLabel
Descriptive label of the value.
- Parameters:
label
- value to be set
-
of
factory method- Returns:
- instance of AttributePlainEnumValue
-
of
factory method to create a shallow copy AttributePlainEnumValue- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of AttributePlainEnumValue- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for AttributePlainEnumValue- Returns:
- builder
-
builder
create builder for AttributePlainEnumValue instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withAttributePlainEnumValue
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
-