Interface FieldType
public interface FieldType
FieldType
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
FieldType fieldType = FieldType.builder()
.name("{name}")
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic FieldTypeBuilder
builder()
builder factory method for FieldTypestatic FieldTypeBuilder
create builder for FieldType instancestatic FieldType
factory method to create a deep copy of FieldType@NotNull String
getName()
static FieldType
of()
factory methodstatic FieldType
factory method to create a shallow copy FieldTypevoid
set namestatic com.fasterxml.jackson.core.type.TypeReference<FieldType>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withFieldType
(Function<FieldType, T> helper) accessor map function
-
Method Details
-
getName
- Returns:
- name
-
setName
set name- Parameters:
name
- value to be set
-
of
factory method- Returns:
- instance of FieldType
-
of
factory method to create a shallow copy FieldType- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of FieldType- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for FieldType- Returns:
- builder
-
builder
create builder for FieldType instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withFieldType
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
-