Enum AccountCategory
- java.lang.Object
-
- java.lang.Enum<AccountCategory>
-
- de.adorsys.ledgers.postings.db.domain.AccountCategory
-
- All Implemented Interfaces:
Serializable,Comparable<AccountCategory>
public enum AccountCategory extends Enum<AccountCategory>
Each account belongs to an account category. We distinguish among following account categories: - Revenue - Expense - Asset - Liability - Equity- Author:
- fpo
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BalanceSidegetDefaultBs()StringgetDesc()static AccountCategoryvalueOf(String name)Returns the enum constant of this type with the specified name.static AccountCategory[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RE
public static final AccountCategory RE
-
EX
public static final AccountCategory EX
-
AS
public static final AccountCategory AS
-
LI
public static final AccountCategory LI
-
EQ
public static final AccountCategory EQ
-
NOOP
public static final AccountCategory NOOP
-
NORE
public static final AccountCategory NORE
-
NOEX
public static final AccountCategory NOEX
-
-
Method Detail
-
values
public static AccountCategory[] 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 (AccountCategory c : AccountCategory.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AccountCategory 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
-
getDesc
public String getDesc()
-
getDefaultBs
public BalanceSide getDefaultBs()
-
-