Class Cart

java.lang.Object
com.cyran.tp.server.pojo.Cart

public class Cart
extends java.lang.Object
Class for creating Cart entity
Author:
Viktor Matovic
  • Constructor Summary

    Constructors 
    Constructor Description
    Cart()  
  • Method Summary

    Modifier and Type Method Description
    java.lang.Float getFinalPrice()
    Returns Cart final price
    java.util.List<Product> getProducts()
    Returns list of products
    void setFinalPrice​(java.lang.Float finalPrice)
    Sets final price of Cart
    void setProducts​(java.util.List<Product> products)
    Sets list of products

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Cart

      public Cart()
  • Method Details

    • setProducts

      public void setProducts​(java.util.List<Product> products)
      Sets list of products
      Parameters:
      products - - list of products
    • getProducts

      public java.util.List<Product> getProducts()
      Returns list of products
      Returns:
      products
    • setFinalPrice

      public void setFinalPrice​(java.lang.Float finalPrice)
      Sets final price of Cart
      Parameters:
      finalPrice - - new finalPrice of Cart
    • getFinalPrice

      public java.lang.Float getFinalPrice()
      Returns Cart final price
      Returns:
      finalPrice