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 ReferenceBuilderbuilder()builder factory method for Referencestatic ReferenceBuildercreate builder for Reference instancecopyDeep()static Referencefactory method to create a deep copy of Reference@NotNull StringgetId()@NotNull ReferenceTypeIdstatic Referenceof()factory methodstatic Referencefactory method to create a shallow copy Referencevoidset idvoidsetTypeId(ReferenceTypeId typeId) set typeIdstatic com.fasterxml.jackson.core.type.TypeReference<Reference>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithReference(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
-
copyDeep
Reference copyDeep() -
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
-