Class Product.Builder

  • Enclosing class:
    Product

    public static class Product.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • name

        public Product.Builder name​(String name)
        Name of the product.
        Parameters:
        name - the value to set
        Returns:
        this builder
      • count

        public Product.Builder count​(Double count)
        Units required for the missing product.
        Parameters:
        count - the value to set
        Returns:
        this builder
      • category

        public Product.Builder category​(ProductCategory category)
        Product category base or option.
        Parameters:
        category - the value to set
        Returns:
        this builder