public class CartItem extends Object
Modifier and Type | Method and Description |
---|---|
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() |
static javax.money.MonetaryAmount |
sumUp(Iterable<? extends org.salespointframework.order.Priced> priced)
Sums up the prices of all given
Priced instances. |
String |
toString() |
public final String getProductName()
protected boolean canEqual(Object other)
public String getId()
public javax.money.MonetaryAmount getPrice()
public Quantity getQuantity()
public Product getProduct()
public static javax.money.MonetaryAmount sumUp(Iterable<? extends org.salespointframework.order.Priced> priced)
Priced
instances.priced
- must not be null.Copyright © 2019. All rights reserved.