Interface CustomFields
public interface CustomFields
CustomFields
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CustomFields customFields = CustomFields.builder()
.type(typeBuilder -> typeBuilder)
.fields(fieldsBuilder -> fieldsBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic CustomFieldsBuilder
builder()
builder factory method for CustomFieldsstatic CustomFieldsBuilder
builder
(CustomFields template) create builder for CustomFields instancestatic CustomFields
deepCopy
(CustomFields template) factory method to create a deep copy of CustomFields@NotNull @Valid Object
A valid JSON object, based on FieldDefinition.@NotNull @Valid Reference
getType()
static CustomFields
of()
factory methodstatic CustomFields
of
(CustomFields template) factory method to create a shallow copy CustomFieldsvoid
A valid JSON object, based on FieldDefinition.void
set typestatic com.fasterxml.jackson.core.type.TypeReference<CustomFields>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withCustomFields
(Function<CustomFields, T> helper) accessor map function
-
Method Details
-
getType
- Returns:
- type
-
getFields
A valid JSON object, based on FieldDefinition.
- Returns:
- fields
-
setType
set type- Parameters:
type
- value to be set
-
setFields
A valid JSON object, based on FieldDefinition.
- Parameters:
fields
- value to be set
-
of
factory method- Returns:
- instance of CustomFields
-
of
factory method to create a shallow copy CustomFields- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of CustomFields- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CustomFields- Returns:
- builder
-
builder
create builder for CustomFields instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCustomFields
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
-