- All Implemented Interfaces:
Serializable,Comparable<FeeAssessmentMethod>,Constable
Enum for the fee assessment method.
The terminology here (exclusive vs inclusive) is borrowed from tax assessment.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIf Alice is paying Bob, and an exclusive fractional fee is collected to be sent to Charlie, the amount Alice declares she will pay in the transfer transaction does not include the fee amount.If Alice is paying Bob, and an inclusive fractional fee is collected to be sent to Charlie, the amount Alice declares she will pay in the transfer transaction includes the fee amount. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiontoString()(package private) static FeeAssessmentMethodvalueOf(boolean code) Returns the enum constant of this class with the specified name.static FeeAssessmentMethodReturns the enum constant of this class with the specified name.static FeeAssessmentMethod[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INCLUSIVE
If Alice is paying Bob, and an inclusive fractional fee is collected to be sent to Charlie, the amount Alice declares she will pay in the transfer transaction includes the fee amount.In other words, Bob receives the amount that Alice intended to send, minus the fee.
-
EXCLUSIVE
If Alice is paying Bob, and an exclusive fractional fee is collected to be sent to Charlie, the amount Alice declares she will pay in the transfer transaction does not include the fee amount.In other words, Alice is charged the fee in addition to the amount she intended to send to Bob.
-
-
Field Details
-
code
final boolean code
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
code- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
toString
- Overrides:
toStringin classEnum<FeeAssessmentMethod>
-