public class OrderMoneyAmounts extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
OrderMoneyAmounts.Builder
Class to build instances of
OrderMoneyAmounts. |
| Constructor and Description |
|---|
OrderMoneyAmounts(Money totalMoney,
Money taxMoney,
Money discountMoney,
Money tipMoney,
Money serviceChargeMoney)
Initialization constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Money |
getDiscountMoney()
Getter for DiscountMoney.
|
Money |
getServiceChargeMoney()
Getter for ServiceChargeMoney.
|
Money |
getTaxMoney()
Getter for TaxMoney.
|
Money |
getTipMoney()
Getter for TipMoney.
|
Money |
getTotalMoney()
Getter for TotalMoney.
|
int |
hashCode() |
OrderMoneyAmounts.Builder |
toBuilder()
Builds a new
OrderMoneyAmounts.Builder object. |
String |
toString()
Converts this OrderMoneyAmounts into string format.
|
public OrderMoneyAmounts(Money totalMoney, Money taxMoney, Money discountMoney, Money tipMoney, Money serviceChargeMoney)
totalMoney - Money value for totalMoney.taxMoney - Money value for taxMoney.discountMoney - Money value for discountMoney.tipMoney - Money value for tipMoney.serviceChargeMoney - Money value for serviceChargeMoney.public Money getTotalMoney()
public Money getTaxMoney()
public Money getDiscountMoney()
public Money getTipMoney()
public Money getServiceChargeMoney()
public String toString()
public OrderMoneyAmounts.Builder toBuilder()
OrderMoneyAmounts.Builder object.
Creates the instance with the state of the current model.OrderMoneyAmounts.Builder objectCopyright © 2022. All rights reserved.