Enum AccountFeeChargeMode
- java.lang.Object
-
- java.lang.Enum<AccountFeeChargeMode>
-
- org.cyclos.model.banking.accountfees.AccountFeeChargeMode
-
- All Implemented Interfaces:
Serializable,Comparable<AccountFeeChargeMode>,HasMessageKey
public enum AccountFeeChargeMode extends Enum<AccountFeeChargeMode> implements HasMessageKey
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BALANCE_PERCENTAGECUSTOMFIXEDNEGATIVE_BALANCE_PERCENTAGENEGATIVE_VOLUME_PERCENTAGEVOLUME_PERCENTAGE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MessageKeygetMessageKey()booleanisBalance()booleanisCustom()booleanisFixed()booleanisNegative()booleanisPositive()booleanisVolume()static AccountFeeChargeModevalueOf(String name)Returns the enum constant of this type with the specified name.static AccountFeeChargeMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FIXED
public static final AccountFeeChargeMode FIXED
-
VOLUME_PERCENTAGE
public static final AccountFeeChargeMode VOLUME_PERCENTAGE
-
NEGATIVE_VOLUME_PERCENTAGE
public static final AccountFeeChargeMode NEGATIVE_VOLUME_PERCENTAGE
-
BALANCE_PERCENTAGE
public static final AccountFeeChargeMode BALANCE_PERCENTAGE
-
NEGATIVE_BALANCE_PERCENTAGE
public static final AccountFeeChargeMode NEGATIVE_BALANCE_PERCENTAGE
-
CUSTOM
public static final AccountFeeChargeMode CUSTOM
-
-
Method Detail
-
values
public static AccountFeeChargeMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AccountFeeChargeMode c : AccountFeeChargeMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AccountFeeChargeMode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
getMessageKey
public MessageKey getMessageKey()
- Specified by:
getMessageKeyin interfaceHasMessageKey
-
isBalance
public boolean isBalance()
-
isCustom
public boolean isCustom()
-
isFixed
public boolean isFixed()
-
isNegative
public boolean isNegative()
-
isPositive
public boolean isPositive()
-
isVolume
public boolean isVolume()
-
-