public class Summary extends Object implements Serializable
| Constructor and Description |
|---|
Summary()
Instantiates a new summary.
|
Summary(BigDecimal subtotal,
BigDecimal shippingCost,
BigDecimal totalTax,
BigDecimal totalCost)
Instantiates a new summary.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
BigDecimal |
getShippingCost()
Gets the shipping cost.
|
BigDecimal |
getSubtotal()
Gets the subtotal.
|
BigDecimal |
getTotalCost()
Gets the total cost.
|
BigDecimal |
getTotalTax()
Gets the total tax.
|
int |
hashCode() |
void |
setShippingCost(BigDecimal shippingCost)
Sets the shipping cost.
|
void |
setSubtotal(BigDecimal subtotal)
Sets the subtotal.
|
void |
setTotalCost(BigDecimal totalCost)
Sets the total cost.
|
void |
setTotalTax(BigDecimal totalTax)
Sets the total tax.
|
String |
toString() |
public Summary()
public Summary(BigDecimal subtotal, BigDecimal shippingCost, BigDecimal totalTax, BigDecimal totalCost)
subtotal - the subtotalshippingCost - the shipping costtotalTax - the total taxtotalCost - the total costpublic BigDecimal getSubtotal()
public void setSubtotal(BigDecimal subtotal)
subtotal - the new subtotalpublic BigDecimal getShippingCost()
public void setShippingCost(BigDecimal shippingCost)
shippingCost - the new shipping costpublic BigDecimal getTotalTax()
public void setTotalTax(BigDecimal totalTax)
totalTax - the new total taxpublic BigDecimal getTotalCost()
public void setTotalCost(BigDecimal totalCost)
totalCost - the new total costCopyright © 2017 BotMill. All rights reserved.