|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<AccountingPeriodMonth>
org.kuali.kfs.module.ec.util.AccountingPeriodMonth
public enum AccountingPeriodMonth
To enumerate the accounting periods as months and provides a set of utilities to manage the period code.
Enum Constant Summary | |
---|---|
MONTH1
|
|
MONTH10
|
|
MONTH11
|
|
MONTH12
|
|
MONTH2
|
|
MONTH3
|
|
MONTH4
|
|
MONTH5
|
|
MONTH6
|
|
MONTH7
|
|
MONTH8
|
|
MONTH9
|
Field Summary | |
---|---|
String |
periodCode
|
Method Summary | |
---|---|
static Set<String> |
buildPeriodCodeSetWithinRange(AccountingPeriodMonth beginPeriod,
AccountingPeriodMonth endPeriod)
get the period codes between the begin period and the end period. |
static AccountingPeriodMonth |
findAccountingPeriod(String periodCode)
find an accounting period with the given period code |
static Map<Integer,Set<String>> |
findAccountingPeriodsBetween(Integer beginYear,
String beginPeriodCode,
Integer endYear,
String endPeriodCode)
find all accounting periods between the given begin period and end period. |
static AccountingPeriodMonth |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static AccountingPeriodMonth[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final AccountingPeriodMonth MONTH1
public static final AccountingPeriodMonth MONTH2
public static final AccountingPeriodMonth MONTH3
public static final AccountingPeriodMonth MONTH4
public static final AccountingPeriodMonth MONTH5
public static final AccountingPeriodMonth MONTH6
public static final AccountingPeriodMonth MONTH7
public static final AccountingPeriodMonth MONTH8
public static final AccountingPeriodMonth MONTH9
public static final AccountingPeriodMonth MONTH10
public static final AccountingPeriodMonth MONTH11
public static final AccountingPeriodMonth MONTH12
Field Detail |
---|
public final String periodCode
Method Detail |
---|
public static AccountingPeriodMonth[] values()
for (AccountingPeriodMonth c : AccountingPeriodMonth.values()) System.out.println(c);
public static AccountingPeriodMonth valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic static AccountingPeriodMonth findAccountingPeriod(String periodCode)
periodCode
- the given period code
public static Map<Integer,Set<String>> findAccountingPeriodsBetween(Integer beginYear, String beginPeriodCode, Integer endYear, String endPeriodCode)
beginYear
- the begin yearbeginPeriodCode
- the begin period codeendYear
- the end yearendPeriodCode
- the end period code
public static Set<String> buildPeriodCodeSetWithinRange(AccountingPeriodMonth beginPeriod, AccountingPeriodMonth endPeriod)
beginPeriod
- the begin periodendPeriod
- the end period
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |