Interface TypeReference
- All Superinterfaces:
Identifiable<Type>,IdentifiableObjHolder<Type>,Reference,ReferenceMixin
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic TypeReferenceBuilderbuilder()builder factory method for TypeReferencestatic TypeReferenceBuilderbuilder(TypeReference template) create builder for TypeReference instancecopyDeep()static TypeReferencedeepCopy(TypeReference template) factory method to create a deep copy of TypeReference@NotNull StringgetId()Unique identifier of the referenced Type.@Valid TypegetObj()Contains the representation of the expanded Type.static TypeReferenceof()factory methodstatic TypeReferenceof(TypeReference template) factory method to create a shallow copy TypeReferencevoidUnique identifier of the referenced Type.voidContains the representation of the expanded Type.default TypeResourceIdentifierstatic com.fasterxml.jackson.core.type.TypeReference<TypeReference>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithTypeReference(Function<TypeReference, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.common.Reference
getTypeId, withReference
-
Field Details
-
TYPE
discriminator value for TypeReference- See Also:
-
-
Method Details
-
getId
Unique identifier of the referenced Type.
- Specified by:
getIdin interfaceIdentifiable<Type>- Specified by:
getIdin interfaceReference- Specified by:
getIdin interfaceReferenceMixin- Returns:
- id
-
getObj
Contains the representation of the expanded Type. Only present in responses to requests with Reference Expansion for Types.
- Specified by:
getObjin interfaceIdentifiableObjHolder<Type>- Returns:
- obj
-
setId
Unique identifier of the referenced Type.
-
setObj
Contains the representation of the expanded Type. Only present in responses to requests with Reference Expansion for Types.
- Parameters:
obj- value to be set
-
of
factory method- Returns:
- instance of TypeReference
-
of
factory method to create a shallow copy TypeReference- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
TypeReference copyDeep() -
deepCopy
factory method to create a deep copy of TypeReference- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for TypeReference- Returns:
- builder
-
builder
create builder for TypeReference instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withTypeReference
accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
toResourceIdentifier
- Specified by:
toResourceIdentifierin interfaceReferenceMixin
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-