@Status(stage=DEVELOPMENT, unitTests=ABSENT) public enum Payment extends Enum<Payment>
Enum Constant and Description |
---|
ANNUALLY
Yearly payment at the start of the year.
|
ANNUALLY_AT_END
Yearly payment at the end of the year.
|
BI_MONTHLY
Bi-monthly payment (6 times per year) at the start of the two months.
|
BI_MONTHLY_AT_END
Bi-monthly payment (6 times per year) at the end of the two months.
|
DAILY
Daily payment.
|
FOUR_MONTHLY
Four-monthly payment (3 times per year) at the start of the trimester.
|
FOUR_MONTHLY_AT_END
Four-monthly payment (3 times per year) at the end of the trimester.
|
MONTHLY
Monthly payment at the start of the month.
|
MONTHLY_AT_END
Monthly payment at the end of the month.
|
QUARTERLY
Quarterly payment (4 times per year) at the start of the quarter.
|
QUARTERLY_AT_END
Quarterly payment (4 times per year) at the end of the quarter.
|
SEMI_ANNUALLY_AT_END
Semi-annually (2 times per year) payment at the end of the half year.
|
SEMI_ANUALLY
Semi-annually (2 times per year) payment at the start of the half year.
|
WEEKLY
Weekly payment at the start of the week.
|
WEEKLY_AT_END
Weekly payment at the end of the week.
|
Modifier and Type | Method and Description |
---|---|
PaymentMoment |
getMoment()
Gets moment at which the payments take place.
|
int |
getPaymentsPerYear()
Gets the number of payments per year.
|
static Payment |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Payment[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Payment DAILY
public static final Payment WEEKLY
public static final Payment WEEKLY_AT_END
public static final Payment MONTHLY
public static final Payment MONTHLY_AT_END
public static final Payment BI_MONTHLY
public static final Payment BI_MONTHLY_AT_END
public static final Payment QUARTERLY
public static final Payment QUARTERLY_AT_END
public static final Payment FOUR_MONTHLY
public static final Payment FOUR_MONTHLY_AT_END
public static final Payment SEMI_ANUALLY
public static final Payment SEMI_ANNUALLY_AT_END
public static final Payment ANNUALLY
public static final Payment ANNUALLY_AT_END
public static Payment[] values()
for (Payment c : Payment.values()) System.out.println(c);
public static Payment valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getPaymentsPerYear()
public PaymentMoment getMoment()
Copyright © 2008–2018. All rights reserved.