Class AddAddressChangeImpl

java.lang.Object
com.commercetools.history.models.change.AddAddressChangeImpl
All Implemented Interfaces:
AddAddressChange, Change, io.vrap.rmf.base.client.ModelBase

public class AddAddressChangeImpl extends Object implements AddAddressChange, io.vrap.rmf.base.client.ModelBase

Change triggered by the Add Address update action.

  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase

    io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
  • Field Summary

    Fields inherited from interface com.commercetools.history.models.change.AddAddressChange

    ADD_ADDRESS_CHANGE
  • Constructor Summary

    Constructors
    Constructor
    Description
    create empty instance
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    Type of change on a resource that is similar to the update action it relates to, where possible.
    Value after the change.
    Unique discriminator value to reliably deserialize the data type.
    int
     
    void
    setChange(String change)
    set change
    void
    setNextValue(Address nextValue)
    Value after the change.
     

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.commercetools.history.models.change.AddAddressChange

    withAddAddressChange

    Methods inherited from interface com.commercetools.history.models.change.Change

    withChange

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

    reflectionString, reflectionString
  • Constructor Details

    • AddAddressChangeImpl

      public AddAddressChangeImpl()
      create empty instance
  • Method Details

    • getType

      public String getType()
      Description copied from interface: Change

      Unique discriminator value to reliably deserialize the data type.

      Specified by:
      getType in interface AddAddressChange
      Specified by:
      getType in interface Change
      Returns:
      type
    • getChange

      public String getChange()
      Description copied from interface: Change

      Type of change on a resource that is similar to the update action it relates to, where possible. It is not a unique identifier for the data structure, for example, the setDescription change can occur with a localized and non-localized representation.

      Records can be filtered by this value using the changes query parameter.

      Specified by:
      getChange in interface AddAddressChange
      Specified by:
      getChange in interface Change
      Returns:
      change
    • getNextValue

      public Address getNextValue()

      Value after the change.

      Specified by:
      getNextValue in interface AddAddressChange
      Returns:
      nextValue
    • setChange

      public void setChange(String change)
      Description copied from interface: AddAddressChange
      set change
      Specified by:
      setChange in interface AddAddressChange
      Specified by:
      setChange in interface Change
      Parameters:
      change - value to be set
    • setNextValue

      public void setNextValue(Address nextValue)
      Description copied from interface: AddAddressChange

      Value after the change.

      Specified by:
      setNextValue in interface AddAddressChange
      Parameters:
      nextValue - 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