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 KeyReferenceBuilder
builder()
builder factory method for KeyReferencestatic KeyReferenceBuilder
builder
(KeyReference template) create builder for KeyReference instancestatic KeyReference
deepCopy
(KeyReference template) factory method to create a deep copy of KeyReference@NotNull String
getKey()
@NotNull ReferenceTypeId
static KeyReference
of()
factory methodstatic KeyReference
of
(KeyReference template) factory method to create a shallow copy KeyReferencevoid
set keyvoid
setTypeId
(ReferenceTypeId typeId) set typeIdstatic com.fasterxml.jackson.core.type.TypeReference<KeyReference>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withKeyReference
(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
-
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
-