Interface FieldContainer
public interface FieldContainer
Maps the Custom Field names to actual values.
Example to create an instance using the builder pattern
FieldContainer fieldContainer = FieldContainer.builder()
.//(//Builder -> //Builder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic FieldContainerBuilderbuilder()builder factory method for FieldContainerstatic FieldContainerBuilderbuilder(FieldContainer template) create builder for FieldContainer instancecopyDeep()static FieldContainerdeepCopy(FieldContainer template) factory method to create a deep copy of FieldContainerstatic FieldContainerof()factory methodstatic FieldContainerof(FieldContainer template) factory method to create a shallow copy FieldContainervoidsetValue(String key, CustomField value) Mapping from the Custom Field name to the actual value.static com.fasterxml.jackson.core.type.TypeReference<FieldContainer>gives a TypeReference for usage with Jackson DataBind@NotNull @Valid Map<String,CustomField> values()Mapping from the Custom Field name to the actual value.default <T> TwithFieldContainer(Function<FieldContainer, T> helper) accessor map function
-
Method Details
-
values
Mapping from the Custom Field name to the actual value.
- Returns:
- map of the pattern property values
-
setValue
Mapping from the Custom Field name to the actual value.
- Parameters:
key- property namevalue- property value
-
of
factory method- Returns:
- instance of FieldContainer
-
of
factory method to create a shallow copy FieldContainer- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
FieldContainer copyDeep() -
deepCopy
factory method to create a deep copy of FieldContainer- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for FieldContainer- Returns:
- builder
-
builder
create builder for FieldContainer instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withFieldContainer
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
-