public class Content extends Object
| Constructor and Description |
|---|
Content()
Default Constructor.
|
Content(String productId,
Long quantity,
Float itemPrice,
String title,
String description,
String brand,
String category,
DeliveryCategory deliveryCategory)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Content |
brand(String brand)
Set brand
|
Content |
category(String category)
Set category
|
Content |
deliveryCategory(DeliveryCategory deliveryCategory)
Set a Type of delivery for a purchase event.
|
Content |
description(String description)
Set description
|
String |
getBrand()
Get brand.
|
String |
getCategory()
Get category.
|
DeliveryCategory |
getDeliveryCategory()
Type of delivery for a purchase event.
|
String |
getDescription()
Get description.
|
Float |
getItemPrice()
Get Item Price.
|
String |
getProductId()
Get Product Id.
|
Long |
getQuantity()
Get number of product.
|
String |
getTitle()
Get title.
|
int |
hashCode() |
Content |
itemPrice(Float itemPrice)
Set Item Price.
|
Content |
productId(String productId)
Set Product Id
|
Content |
quantity(Long quantity)
Set number of product.
|
void |
setBrand(String brand)
Set brand
|
void |
setCategory(String category)
Set category
|
void |
setDeliveryCategory(DeliveryCategory deliveryCategory)
Set a Type of delivery for a purchase event.
|
void |
setDescription(String description)
Set description
|
void |
setItemPrice(Float itemPrice)
Set Item Price.
|
void |
setProductId(String productId)
Set Product Id
|
void |
setQuantity(Long quantity)
Set number of product.
|
void |
setTitle(String title)
Set title
|
Content |
title(String title)
Set Title
|
String |
toString() |
public Content()
public Content(String productId, Long quantity, Float itemPrice, String title, String description, String brand, String category, DeliveryCategory deliveryCategory)
productId - product idquantity - number of productitemPrice - single item Pricetitle - product titledescription - product descriptionbrand - product brandcategory - product categorydeliveryCategory - type of delivery for a purchase eventpublic String getProductId()
public void setProductId(String productId)
productId - product Idpublic Content productId(String productId)
productId - product Idpublic Long getQuantity()
public void setQuantity(Long quantity)
quantity - number of itemspublic Content quantity(Long quantity)
quantity - number of itemspublic Float getItemPrice()
public void setItemPrice(Float itemPrice)
itemPrice - single item pricepublic Content itemPrice(Float itemPrice)
itemPrice - single item pricepublic String getTitle()
public void setTitle(String title)
title - Titlepublic String getDescription()
public void setDescription(String description)
description - Descriptionpublic Content description(String description)
description - Descriptionpublic String getBrand()
public void setBrand(String brand)
brand - Brandpublic String getCategory()
public void setCategory(String category)
category - Categorypublic Content category(String category)
category - Categorypublic DeliveryCategory getDeliveryCategory()
public void setDeliveryCategory(DeliveryCategory deliveryCategory)
deliveryCategory - type of deliverypublic Content deliveryCategory(DeliveryCategory deliveryCategory)
deliveryCategory - type of deliveryCopyright © 2020. All rights reserved.