Class VariantImpl

java.lang.Object
com.commercetools.history.models.common.VariantImpl
All Implemented Interfaces:
Variant, io.vrap.rmf.base.client.ModelBase

public class VariantImpl extends Object implements Variant, io.vrap.rmf.base.client.ModelBase
Variant
  • Constructor Details

    • VariantImpl

      public VariantImpl()
      create empty instance
  • Method Details

    • getId

      public Integer getId()
      Specified by:
      getId in interface Variant
      Returns:
      id
    • getSku

      public String getSku()
      Specified by:
      getSku in interface Variant
      Returns:
      sku
    • getKey

      public String getKey()
      Specified by:
      getKey in interface Variant
      Returns:
      key
    • setId

      public void setId(Integer id)
      Description copied from interface: Variant
      set id
      Specified by:
      setId in interface Variant
      Parameters:
      id - value to be set
    • setSku

      public void setSku(String sku)
      Description copied from interface: Variant
      set sku
      Specified by:
      setSku in interface Variant
      Parameters:
      sku - value to be set
    • setKey

      public void setKey(String key)
      Description copied from interface: Variant
      set key
      Specified by:
      setKey in interface Variant
      Parameters:
      key - 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