Class CartItem

java.lang.Object
org.salespointframework.order.CartItem

public class CartItem extends Object
A CartItem consists of a Product and a Quantity.
Author:
Paul Henke, Oliver Gierke
  • Method Details

    • getProductName

      public final String getProductName()
      Returns the name of the Product associated with the CartItem.
      Returns:
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

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

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getId

      public String getId()
    • getPrice

      public javax.money.MonetaryAmount getPrice()
    • getQuantity

      public Quantity getQuantity()
    • getProduct

      public Product getProduct()