Enum AccountFeeLogStatus
- java.lang.Object
-
- java.lang.Enum<AccountFeeLogStatus>
-
- org.cyclos.model.banking.accountfees.AccountFeeLogStatus
-
- All Implemented Interfaces:
Serializable,Comparable<AccountFeeLogStatus>,HasMessageKey
public enum AccountFeeLogStatus extends Enum<AccountFeeLogStatus> implements HasMessageKey
Possible statuses for an account fee log
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FINISHEDThe execution has finishedNEVER_RANThe execution has never ranPREPARINGThe fee will start to run, but hasn't been dispatched yetRECHARGING_FAILEDThe execution is currently running for recharging failed usersRUNNINGThe execution is currently running
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MessageKeygetMessageKey()booleanisExecuting()Returns whether this status means that the log is being executed (eitherRUNNING,PREPARINGorRECHARGING_FAILED)static AccountFeeLogStatusvalueOf(String name)Returns the enum constant of this type with the specified name.static AccountFeeLogStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NEVER_RAN
public static final AccountFeeLogStatus NEVER_RAN
The execution has never ran
-
FINISHED
public static final AccountFeeLogStatus FINISHED
The execution has finished
-
RUNNING
public static final AccountFeeLogStatus RUNNING
The execution is currently running
-
PREPARING
public static final AccountFeeLogStatus PREPARING
The fee will start to run, but hasn't been dispatched yet
-
RECHARGING_FAILED
public static final AccountFeeLogStatus RECHARGING_FAILED
The execution is currently running for recharging failed users
-
-
Method Detail
-
values
public static AccountFeeLogStatus[] 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 (AccountFeeLogStatus c : AccountFeeLogStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AccountFeeLogStatus 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
-
isExecuting
public boolean isExecuting()
Returns whether this status means that the log is being executed (eitherRUNNING,PREPARINGorRECHARGING_FAILED)
-
-