Interface KeyReference
public interface KeyReference
KeyReference
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
KeyReference keyReference = KeyReference.builder()
.key("{key}")
.typeId(ReferenceTypeId.ASSOCIATE_ROLE)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic KeyReferenceBuilderbuilder()builder factory method for KeyReferencestatic KeyReferenceBuilderbuilder(KeyReference template) create builder for KeyReference instancecopyDeep()static KeyReferencedeepCopy(KeyReference template) factory method to create a deep copy of KeyReference@NotNull StringgetKey()@NotNull ReferenceTypeIdstatic KeyReferenceof()factory methodstatic KeyReferenceof(KeyReference template) factory method to create a shallow copy KeyReferencevoidset keyvoidsetTypeId(ReferenceTypeId typeId) set typeIdstatic com.fasterxml.jackson.core.type.TypeReference<KeyReference>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithKeyReference(Function<KeyReference, T> helper) accessor map function
-
Method Details
-
getKey
- Returns:
- key
-
getTypeId
- Returns:
- typeId
-
setKey
set key- Parameters:
key- value to be set
-
setTypeId
set typeId- Parameters:
typeId- value to be set
-
of
factory method- Returns:
- instance of KeyReference
-
of
factory method to create a shallow copy KeyReference- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
KeyReference copyDeep() -
deepCopy
factory method to create a deep copy of KeyReference- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for KeyReference- Returns:
- builder
-
builder
create builder for KeyReference instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withKeyReference
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
-