Package com.six.timapi
Class AmountFinal
- java.lang.Object
-
- com.six.timapi.Amount
-
- com.six.timapi.AmountFinal
-
public class AmountFinal extends Amount
Final amount after aTerminal.amtAdjustment(Amount)
has been process by the terminal.
-
-
Constructor Summary
Constructors Constructor Description AmountFinal(double amount, Currency currency, int exponent, AdjustmentResult adjustmentResult)
Create amount using major units.AmountFinal(double amount, Currency currency, AdjustmentResult adjustmentResult)
Create amount using major units.AmountFinal(int amount, Currency currency, int exponent, AdjustmentResult adjustmentResult)
Create amount using minor units.AmountFinal(int amount, Currency currency, AdjustmentResult adjustmentResult)
Create amount using minor units.AmountFinal(long amount, Currency currency, int exponent, AdjustmentResult adjustmentResult)
Create amount using minor units.AmountFinal(long amount, Currency currency, AdjustmentResult adjustmentResult)
Create amount using minor units.AmountFinal(com.six.timapi.internal.TimSavedState savedState)
For internal use only.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.six.timapi.internal.TimSavedState
createSavedState(String name)
For internal use only.AdjustmentResult
getAdjustmentResult()
Adjustment result.void
setAdjustmentResult(AdjustmentResult adjustmentResult)
Set adjustment result.String
toString()
String representation for debugging purpose.-
Methods inherited from class com.six.timapi.Amount
getAmount, getCurrency, getDecimalValue, getExponent, getIntAmount, setAmount, setCurrency, setDecimalValue, setExponent, setIntAmount
-
-
-
-
Constructor Detail
-
AmountFinal
public AmountFinal(int amount, Currency currency, AdjustmentResult adjustmentResult)
Create amount using minor units.
-
AmountFinal
public AmountFinal(int amount, Currency currency, int exponent, AdjustmentResult adjustmentResult)
Create amount using minor units.
-
AmountFinal
public AmountFinal(long amount, Currency currency, AdjustmentResult adjustmentResult)
Create amount using minor units.
-
AmountFinal
public AmountFinal(long amount, Currency currency, int exponent, AdjustmentResult adjustmentResult)
Create amount using minor units.
-
AmountFinal
public AmountFinal(double amount, Currency currency, AdjustmentResult adjustmentResult)
Create amount using major units.
-
AmountFinal
public AmountFinal(double amount, Currency currency, int exponent, AdjustmentResult adjustmentResult)
Create amount using major units.
-
AmountFinal
public AmountFinal(com.six.timapi.internal.TimSavedState savedState)
For internal use only.
-
-
Method Detail
-
getAdjustmentResult
public AdjustmentResult getAdjustmentResult()
Adjustment result.
-
setAdjustmentResult
public void setAdjustmentResult(AdjustmentResult adjustmentResult)
Set adjustment result.
-
toString
public String toString()
String representation for debugging purpose.
-
createSavedState
public com.six.timapi.internal.TimSavedState createSavedState(String name)
For internal use only.- Overrides:
createSavedState
in classAmount
-
-