Class EnumValueImpl

java.lang.Object
com.commercetools.history.models.change_value.EnumValueImpl
All Implemented Interfaces:
EnumValue, io.vrap.rmf.base.client.ModelBase

public class EnumValueImpl extends Object implements EnumValue, io.vrap.rmf.base.client.ModelBase
EnumValue
  • 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
     
    Key of the value used as a programmatic identifier.
    Descriptive label of the value.
    int
     
    void
    Key of the value used as a programmatic identifier.
    void
    Descriptive label of the value.
     

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.commercetools.history.models.change_value.EnumValue

    withEnumValue

    Methods inherited from interface io.vrap.rmf.base.client.ModelBase

    reflectionString, reflectionString
  • Constructor Details

    • EnumValueImpl

      public EnumValueImpl()
      create empty instance
  • Method Details

    • getKey

      public String getKey()

      Key of the value used as a programmatic identifier.

      Specified by:
      getKey in interface EnumValue
      Returns:
      key
    • getLabel

      public String getLabel()

      Descriptive label of the value.

      Specified by:
      getLabel in interface EnumValue
      Returns:
      label
    • setKey

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

      Key of the value used as a programmatic identifier.

      Specified by:
      setKey in interface EnumValue
      Parameters:
      key - value to be set
    • setLabel

      public void setLabel(String label)
      Description copied from interface: EnumValue

      Descriptive label of the value.

      Specified by:
      setLabel in interface EnumValue
      Parameters:
      label - 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