Class ItemStateImpl

java.lang.Object
com.commercetools.api.models.order.ItemStateImpl
All Implemented Interfaces:
ItemState, io.vrap.rmf.base.client.ModelBase

public class ItemStateImpl extends Object implements ItemState, io.vrap.rmf.base.client.ModelBase
ItemState
  • 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
     
    Number of Line Items or Custom Line Items in this State.
    State of the Line Items or Custom Line Items in a custom workflow.
    int
     
    void
    setQuantity(Long quantity)
    Number of Line Items or Custom Line Items in this State.
    void
    State of the Line Items or Custom Line Items in a custom workflow.
     

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.commercetools.api.models.order.ItemState

    withItemState

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

    reflectionString, reflectionString
  • Constructor Details

    • ItemStateImpl

      public ItemStateImpl()
      create empty instance
  • Method Details

    • getQuantity

      public Long getQuantity()

      Number of Line Items or Custom Line Items in this State.

      Specified by:
      getQuantity in interface ItemState
      Returns:
      quantity
    • getState

      public StateReference getState()

      State of the Line Items or Custom Line Items in a custom workflow.

      Specified by:
      getState in interface ItemState
      Returns:
      state
    • setQuantity

      public void setQuantity(Long quantity)
      Description copied from interface: ItemState

      Number of Line Items or Custom Line Items in this State.

      Specified by:
      setQuantity in interface ItemState
      Parameters:
      quantity - value to be set
    • setState

      public void setState(StateReference state)
      Description copied from interface: ItemState

      State of the Line Items or Custom Line Items in a custom workflow.

      Specified by:
      setState in interface ItemState
      Parameters:
      state - 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