Constructor and Description |
---|
CartItem(Product product,
Quantity quantity)
Creates a new
CartItem . |
Modifier and Type | Method and Description |
---|---|
(package private) CartItem |
add(Quantity quantity)
|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
String |
getId() |
javax.money.MonetaryAmount |
getPrice()
Returns the price of the item.
|
Product |
getProduct() |
String |
getProductName()
|
Quantity |
getQuantity() |
int |
hashCode() |
(package private) OrderLine |
toOrderLine()
Creates an
OrderLine from this CartItem. |
String |
toString() |
public final String getProductName()
@Generated(value="lombok") public String toString()
@Generated(value="lombok") public boolean equals(Object o)
@Generated(value="lombok") protected boolean canEqual(Object other)
@Generated(value="lombok") public int hashCode()
@Generated(value="lombok") public String getId()
@Generated(value="lombok") public javax.money.MonetaryAmount getPrice()
Priced
@Generated(value="lombok") public Quantity getQuantity()
@Generated(value="lombok") public Product getProduct()
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.