Package com.flagright.api.types
Class Amount.Builder
- java.lang.Object
-
- com.flagright.api.types.Amount.Builder
-
- All Implemented Interfaces:
Amount._FinalStage,Amount.AmountCurrencyStage,Amount.AmountValueStage
- Enclosing class:
- Amount
public static final class Amount.Builder extends java.lang.Object implements Amount.AmountValueStage, Amount.AmountCurrencyStage, Amount._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Amount._FinalStageamountCurrency(CurrencyCode amountCurrency)Amount.AmountCurrencyStageamountValue(double amountValue)Numerical value of the transactionAmountbuild()Amount.Builderfrom(Amount other)
-
-
-
Method Detail
-
from
public Amount.Builder from(Amount other)
- Specified by:
fromin interfaceAmount.AmountValueStage
-
amountValue
public Amount.AmountCurrencyStage amountValue(double amountValue)
Numerical value of the transaction
- Specified by:
amountValuein interfaceAmount.AmountValueStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
amountCurrency
public Amount._FinalStage amountCurrency(@NotNull CurrencyCode amountCurrency)
- Specified by:
amountCurrencyin interfaceAmount.AmountCurrencyStage
-
build
public Amount build()
- Specified by:
buildin interfaceAmount._FinalStage
-
-