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
    Constructor
    Description
    create empty instance
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    Namespace to group Custom Objects.
    User-defined identifier that is unique within the given container.
    int
     
    void
    setContainer(String container)
    Namespace to group Custom Objects.
    void
    User-defined identifier that is unique within the given container.
     

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait

    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

      public String getKey()

      User-defined identifier that is unique within the given container.

      Specified by:
      getKey in interface ContainerAndKey
      Returns:
      key
    • getContainer

      public String getContainer()

      Namespace to group Custom Objects.

      Specified by:
      getContainer in interface ContainerAndKey
      Returns:
      container
    • setKey

      public void setKey(String key)
      Description copied from interface: ContainerAndKey

      User-defined identifier that is unique within the given container.

      Specified by:
      setKey in interface ContainerAndKey
      Parameters:
      key - value to be set
    • setContainer

      public void setContainer(String container)
      Description copied from interface: ContainerAndKey

      Namespace to group Custom Objects.

      Specified by:
      setContainer in interface ContainerAndKey
      Parameters:
      container - value to be set
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object