Enum DefaultAccountHistoryPeriod
- java.lang.Object
-
- java.lang.Enum<DefaultAccountHistoryPeriod>
-
- org.cyclos.model.banking.accounts.DefaultAccountHistoryPeriod
-
- All Implemented Interfaces:
Serializable,Comparable<DefaultAccountHistoryPeriod>,HasMessageKey
public enum DefaultAccountHistoryPeriod extends Enum<DefaultAccountHistoryPeriod> implements HasMessageKey
Indicates the default period filter for account history
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALL_TIMECURRENT_MONTHCURRENT_WEEKCURRENT_YEARLAST_12_MONTHSLAST_3_MONTHSLAST_MONTHTODAY
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MessageKeygetMessageKey()static DefaultAccountHistoryPeriodvalueOf(String name)Returns the enum constant of this type with the specified name.static DefaultAccountHistoryPeriod[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TODAY
public static final DefaultAccountHistoryPeriod TODAY
-
CURRENT_WEEK
public static final DefaultAccountHistoryPeriod CURRENT_WEEK
-
LAST_MONTH
public static final DefaultAccountHistoryPeriod LAST_MONTH
-
LAST_3_MONTHS
public static final DefaultAccountHistoryPeriod LAST_3_MONTHS
-
LAST_12_MONTHS
public static final DefaultAccountHistoryPeriod LAST_12_MONTHS
-
CURRENT_MONTH
public static final DefaultAccountHistoryPeriod CURRENT_MONTH
-
CURRENT_YEAR
public static final DefaultAccountHistoryPeriod CURRENT_YEAR
-
ALL_TIME
public static final DefaultAccountHistoryPeriod ALL_TIME
-
-
Method Detail
-
values
public static DefaultAccountHistoryPeriod[] 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 (DefaultAccountHistoryPeriod c : DefaultAccountHistoryPeriod.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DefaultAccountHistoryPeriod 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
-
-