Interface UnresolvedReferences
public interface UnresolvedReferences
References a resource which could not be resolved.
Example to create an instance using the builder pattern
UnresolvedReferences unresolvedReferences = UnresolvedReferences.builder()
.key("{key}")
.typeId(ReferenceType.CART)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic UnresolvedReferencesBuilder
builder()
builder factory method for UnresolvedReferencesstatic UnresolvedReferencesBuilder
builder
(UnresolvedReferences template) create builder for UnresolvedReferences instancestatic UnresolvedReferences
deepCopy
(UnresolvedReferences template) factory method to create a deep copy of UnresolvedReferences@NotNull String
getKey()
Thekey
of the resource.@NotNull ReferenceType
The type of resource.static UnresolvedReferences
of()
factory methodstatic UnresolvedReferences
of
(UnresolvedReferences template) factory method to create a shallow copy UnresolvedReferencesvoid
Thekey
of the resource.void
setTypeId
(ReferenceType typeId) The type of resource.static com.fasterxml.jackson.core.type.TypeReference<UnresolvedReferences>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withUnresolvedReferences
(Function<UnresolvedReferences, T> helper) accessor map function
-
Method Details
-
getKey
The
key
of the resource.- Returns:
- key
-
getTypeId
The type of resource.
- Returns:
- typeId
-
setKey
The
key
of the resource.- Parameters:
key
- value to be set
-
setTypeId
The type of resource.
- Parameters:
typeId
- value to be set
-
of
factory method- Returns:
- instance of UnresolvedReferences
-
of
factory method to create a shallow copy UnresolvedReferences- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of UnresolvedReferences- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for UnresolvedReferences- Returns:
- builder
-
builder
create builder for UnresolvedReferences instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withUnresolvedReferences
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
-