Class ChangeImpl

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

public class ChangeImpl extends Object implements Change, io.vrap.rmf.base.client.ModelBase

Difference between the previous and next version of a resource represented by previousValue (omitted, for example, on creations) and nextValue of the associated change. A Change can also contain extra fields that provide further information.

They are not identical to the actual update actions sent.

  • 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
     
    Type of change on a resource that is similar to the update action it relates to, where possible.
    Unique discriminator value to reliably deserialize the data type.
    int
     
    void
    setChange(String change)
    Type of change on a resource that is similar to the update action it relates to, where possible.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, toString, wait, wait, wait

    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

    • ChangeImpl

      public ChangeImpl()
      create empty instance
  • Method Details

    • getType

      public String getType()

      Unique discriminator value to reliably deserialize the data type.

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

      public String getChange()

      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 Change
      Returns:
      change
    • setChange

      public void setChange(String change)
      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:
      setChange in interface Change
      Parameters:
      change - value to be set
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object