Class CartItem


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

      • getProductName

        public final String getProductName()
        Returns the name of the Product associated with the CartItem.
        Returns:
      • 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()