Class Impression


  • public class Impression
    extends java.lang.Object
    Class representing an impression of one of more Product objects.
    • Constructor Detail

      • Impression

        public Impression​(@NonNull
                          java.lang.String listName,
                          @NonNull
                          Product product)
        Create an Impression object.
        Parameters:
        listName - a string name given to the list where the given Products displayed
        product - a Product to associate with the Impression
      • Impression

        public Impression​(@NonNull
                          Impression impression)
    • Method Detail

      • getListName

        @NonNull
        public java.lang.String getListName()
      • getProducts

        @NonNull
        public java.util.List<Product> getProducts()
      • addProduct

        @NonNull
        public Impression addProduct​(@NonNull
                                     Product product)
        Add a Product to this Impression
        Parameters:
        product -
        Returns: