Interface Reference
public interface Reference
Reference
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
Reference reference = Reference.builder()
.id("{id}")
.typeId(ReferenceTypeId.ASSOCIATE_ROLE)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic ReferenceBuilder
builder()
builder factory method for Referencestatic ReferenceBuilder
create builder for Reference instancestatic Reference
factory method to create a deep copy of Reference@NotNull String
getId()
@NotNull ReferenceTypeId
static Reference
of()
factory methodstatic Reference
factory method to create a shallow copy Referencevoid
set idvoid
setTypeId
(ReferenceTypeId typeId) set typeIdstatic com.fasterxml.jackson.core.type.TypeReference<Reference>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withReference
(Function<Reference, T> helper) accessor map function
-
Method Details
-
getId
- Returns:
- id
-
getTypeId
- Returns:
- typeId
-
setId
set id- Parameters:
id
- value to be set
-
setTypeId
set typeId- Parameters:
typeId
- value to be set
-
of
factory method- Returns:
- instance of Reference
-
of
factory method to create a shallow copy Reference- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of Reference- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for Reference- Returns:
- builder
-
builder
create builder for Reference instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withReference
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
-