Class ContainerAndKeyImpl
java.lang.Object
com.commercetools.api.models.message.ContainerAndKeyImpl
- All Implemented Interfaces:
ContainerAndKey
,io.vrap.rmf.base.client.ModelBase
public class ContainerAndKeyImpl
extends Object
implements ContainerAndKey, io.vrap.rmf.base.client.ModelBase
ContainerAndKey
is specific to Custom Objects. Custom Objects are grouped into containers, which can be used like namespaces. Within a given container, a user-defined key can be used to uniquely identify resources.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Namespace to group Custom Objects.getKey()
User-defined identifier that is unique within the given container.int
hashCode()
void
setContainer
(String container) Namespace to group Custom Objects.void
User-defined identifier that is unique within the given container.toString()
Methods inherited from interface com.commercetools.api.models.message.ContainerAndKey
withContainerAndKey
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
-
Constructor Details
-
ContainerAndKeyImpl
public ContainerAndKeyImpl()create empty instance
-
-
Method Details
-
getKey
User-defined identifier that is unique within the given container.
- Specified by:
getKey
in interfaceContainerAndKey
- Returns:
- key
-
getContainer
Namespace to group Custom Objects.
- Specified by:
getContainer
in interfaceContainerAndKey
- Returns:
- container
-
setKey
Description copied from interface:ContainerAndKey
User-defined identifier that is unique within the given container.
- Specified by:
setKey
in interfaceContainerAndKey
- Parameters:
key
- value to be set
-
setContainer
Description copied from interface:ContainerAndKey
Namespace to group Custom Objects.
- Specified by:
setContainer
in interfaceContainerAndKey
- Parameters:
container
- value to be set
-
equals
-
hashCode
public int hashCode() -
toString
-