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
ConstructorDescriptionGenericCustomObjectImpl
(String id, Long version, ZonedDateTime createdAt, ZonedDateTime lastModifiedAt, LastModifiedBy lastModifiedBy, CreatedBy createdBy, String container, String key, TValue value) -
Method Summary
Modifier and TypeMethodDescriptionboolean
A 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()
int
hashCode()
void
setContainer
(String container) void
setCreatedAt
(ZonedDateTime createdAt) set createdAtvoid
setCreatedBy
(CreatedBy createdBy) void
set idvoid
void
setLastModifiedAt
(ZonedDateTime lastModifiedAt) set lastModifiedAtvoid
setLastModifiedBy
(LastModifiedBy lastModifiedBy) void
void
setVersion
(Long version) set versionMethods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.commercetools.api.models.common.BaseResource
withBaseResource
Methods inherited from interface com.commercetools.api.models.DomainResource
get
Methods 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:Identifiable
The unique ID of this object.- Specified by:
getId
in interfaceBaseResource
- Specified by:
getId
in interfaceDomainResource<TValue>
- Specified by:
getId
in interfaceGenericCustomObject<TValue>
- Specified by:
getId
in interfaceIdentifiable<TValue>
- Specified by:
getId
in interfaceVersioned<TValue>
- Returns:
- id
-
getVersion
- Specified by:
getVersion
in interfaceBaseResource
- Specified by:
getVersion
in interfaceDomainResource<TValue>
- Specified by:
getVersion
in interfaceGenericCustomObject<TValue>
- Specified by:
getVersion
in interfaceVersioned<TValue>
- Returns:
- version
-
getCreatedAt
- Specified by:
getCreatedAt
in interfaceBaseResource
- Specified by:
getCreatedAt
in interfaceGenericCustomObject<TValue>
- Returns:
- createdAt
-
getLastModifiedAt
- Specified by:
getLastModifiedAt
in interfaceBaseResource
- Specified by:
getLastModifiedAt
in interfaceGenericCustomObject<TValue>
- Returns:
- lastModifiedAt
-
getLastModifiedBy
Present on resources created after 2019-02-01 except for events not tracked.
- Specified by:
getLastModifiedBy
in interfaceGenericCustomObject<TValue>
- Returns:
- LastModifiedBy
-
getCreatedBy
Present on resources created after 2019-02-01 except for events not tracked.
- Specified by:
getCreatedBy
in interfaceGenericCustomObject<TValue>
- Returns:
- CreatedBy
-
getContainer
A namespace to group custom objects.
- Specified by:
getContainer
in interfaceGenericCustomObject<TValue>
- Returns:
- container name
-
getKey
- Specified by:
getKey
in interfaceGenericCustomObject<TValue>
-
getValue
- Specified by:
getValue
in interfaceGenericCustomObject<TValue>
-
setId
Description copied from interface:BaseResource
set id- Specified by:
setId
in interfaceBaseResource
- Specified by:
setId
in interfaceGenericCustomObject<TValue>
- Parameters:
id
- value to be set
-
setVersion
Description copied from interface:BaseResource
set version- Specified by:
setVersion
in interfaceBaseResource
- Specified by:
setVersion
in interfaceGenericCustomObject<TValue>
- Parameters:
version
- value to be set
-
setCreatedAt
Description copied from interface:BaseResource
set createdAt- Specified by:
setCreatedAt
in interfaceBaseResource
- Specified by:
setCreatedAt
in interfaceGenericCustomObject<TValue>
- Parameters:
createdAt
- value to be set
-
setLastModifiedAt
Description copied from interface:BaseResource
set lastModifiedAt- Specified by:
setLastModifiedAt
in interfaceBaseResource
- Specified by:
setLastModifiedAt
in interfaceGenericCustomObject<TValue>
- Parameters:
lastModifiedAt
- value to be set
-
setLastModifiedBy
- Specified by:
setLastModifiedBy
in interfaceGenericCustomObject<TValue>
-
setCreatedBy
- Specified by:
setCreatedBy
in interfaceGenericCustomObject<TValue>
-
setContainer
- Specified by:
setContainer
in interfaceGenericCustomObject<TValue>
-
setKey
- Specified by:
setKey
in interfaceGenericCustomObject<TValue>
-
setValue
- Specified by:
setValue
in interfaceGenericCustomObject<TValue>
-
equals
-
hashCode
public int hashCode()
-