Class GenericCustomObjectImpl<TValue>
java.lang.Object
com.commercetools.api.models.custom_object.GenericCustomObjectImpl<TValue>
- Type Parameters:
TValue- The type of the value of this custom object.
- All Implemented Interfaces:
BaseResource,GenericCustomObject<TValue>,DomainResource<GenericCustomObject<TValue>>,Identifiable<GenericCustomObject<TValue>>,Referencable<GenericCustomObject<TValue>>,Versioned<GenericCustomObject<TValue>>
generic custom object implementation
-
Constructor Summary
ConstructorsConstructorDescriptionGenericCustomObjectImpl(String id, Long version, ZonedDateTime createdAt, ZonedDateTime lastModifiedAt, LastModifiedBy lastModifiedBy, CreatedBy createdBy, String container, String key, TValue value) -
Method Summary
Modifier and TypeMethodDescriptioncopyDeep()booleanA namespace to group custom objects.Present on resources created after 2019-02-01 except for events not tracked.getId()The unique ID of this object.getKey()Present on resources created after 2019-02-01 except for events not tracked.getValue()inthashCode()voidsetContainer(String container) voidsetCreatedAt(ZonedDateTime createdAt) set createdAtvoidsetCreatedBy(CreatedBy createdBy) voidset idvoidvoidsetLastModifiedAt(ZonedDateTime lastModifiedAt) set lastModifiedAtvoidsetLastModifiedBy(LastModifiedBy lastModifiedBy) voidvoidsetVersion(Long version) set versionMethods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.commercetools.api.models.common.BaseResource
withBaseResourceMethods inherited from interface com.commercetools.api.models.DomainResource
getMethods inherited from interface com.commercetools.api.models.custom_object.GenericCustomObject
toReference, withCustomObject
-
Constructor Details
-
GenericCustomObjectImpl
public GenericCustomObjectImpl(String id, Long version, ZonedDateTime createdAt, ZonedDateTime lastModifiedAt, LastModifiedBy lastModifiedBy, CreatedBy createdBy, String container, String key, TValue value) -
GenericCustomObjectImpl
public GenericCustomObjectImpl()
-
-
Method Details
-
getId
Description copied from interface:IdentifiableThe unique ID of this object.- Specified by:
getIdin interfaceBaseResource- Specified by:
getIdin interfaceDomainResource<TValue>- Specified by:
getIdin interfaceGenericCustomObject<TValue>- Specified by:
getIdin interfaceIdentifiable<TValue>- Specified by:
getIdin interfaceVersioned<TValue>- Returns:
- id
-
getVersion
- Specified by:
getVersionin interfaceBaseResource- Specified by:
getVersionin interfaceDomainResource<TValue>- Specified by:
getVersionin interfaceGenericCustomObject<TValue>- Specified by:
getVersionin interfaceVersioned<TValue>- Returns:
- version
-
getCreatedAt
- Specified by:
getCreatedAtin interfaceBaseResource- Specified by:
getCreatedAtin interfaceGenericCustomObject<TValue>- Returns:
- createdAt
-
getLastModifiedAt
- Specified by:
getLastModifiedAtin interfaceBaseResource- Specified by:
getLastModifiedAtin interfaceGenericCustomObject<TValue>- Returns:
- lastModifiedAt
-
getLastModifiedBy
Present on resources created after 2019-02-01 except for events not tracked.
- Specified by:
getLastModifiedByin interfaceGenericCustomObject<TValue>- Returns:
- LastModifiedBy
-
getCreatedBy
Present on resources created after 2019-02-01 except for events not tracked.
- Specified by:
getCreatedByin interfaceGenericCustomObject<TValue>- Returns:
- CreatedBy
-
getContainer
A namespace to group custom objects.
- Specified by:
getContainerin interfaceGenericCustomObject<TValue>- Returns:
- container name
-
getKey
- Specified by:
getKeyin interfaceGenericCustomObject<TValue>
-
getValue
- Specified by:
getValuein interfaceGenericCustomObject<TValue>
-
setId
Description copied from interface:BaseResourceset id- Specified by:
setIdin interfaceBaseResource- Specified by:
setIdin interfaceGenericCustomObject<TValue>- Parameters:
id- value to be set
-
setVersion
Description copied from interface:BaseResourceset version- Specified by:
setVersionin interfaceBaseResource- Specified by:
setVersionin interfaceGenericCustomObject<TValue>- Parameters:
version- value to be set
-
setCreatedAt
Description copied from interface:BaseResourceset createdAt- Specified by:
setCreatedAtin interfaceBaseResource- Specified by:
setCreatedAtin interfaceGenericCustomObject<TValue>- Parameters:
createdAt- value to be set
-
setLastModifiedAt
Description copied from interface:BaseResourceset lastModifiedAt- Specified by:
setLastModifiedAtin interfaceBaseResource- Specified by:
setLastModifiedAtin interfaceGenericCustomObject<TValue>- Parameters:
lastModifiedAt- value to be set
-
setLastModifiedBy
- Specified by:
setLastModifiedByin interfaceGenericCustomObject<TValue>
-
setCreatedBy
- Specified by:
setCreatedByin interfaceGenericCustomObject<TValue>
-
setContainer
- Specified by:
setContainerin interfaceGenericCustomObject<TValue>
-
setKey
- Specified by:
setKeyin interfaceGenericCustomObject<TValue>
-
setValue
- Specified by:
setValuein interfaceGenericCustomObject<TValue>
-
equals
-
hashCode
public int hashCode() -
copyDeep
- Specified by:
copyDeepin interfaceBaseResource
-