Package org.killbill.billing.catalog.api
Enum BillingPeriod
- java.lang.Object
-
- java.lang.Enum<BillingPeriod>
-
- org.killbill.billing.catalog.api.BillingPeriod
-
- All Implemented Interfaces:
Serializable,Comparable<BillingPeriod>
public enum BillingPeriod extends Enum<BillingPeriod>
TheBillingPeriodsupported in the system
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANNUALBIANNUALBIENNIALBIMESTRIALBIWEEKLYDAILYMONTHLYNINETY_DAYSNO_BILLING_PERIODQUARTERLYSESQUIENNIALSIXTY_DAYSTHIRTY_DAYSTHIRTY_ONE_DAYSTRIANNUALTRIENNIALWEEKLY
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.joda.time.PeriodgetPeriod()static BillingPeriodvalueOf(String name)Returns the enum constant of this type with the specified name.static BillingPeriod[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DAILY
public static final BillingPeriod DAILY
-
WEEKLY
public static final BillingPeriod WEEKLY
-
BIWEEKLY
public static final BillingPeriod BIWEEKLY
-
THIRTY_DAYS
public static final BillingPeriod THIRTY_DAYS
-
THIRTY_ONE_DAYS
public static final BillingPeriod THIRTY_ONE_DAYS
-
SIXTY_DAYS
public static final BillingPeriod SIXTY_DAYS
-
NINETY_DAYS
public static final BillingPeriod NINETY_DAYS
-
MONTHLY
public static final BillingPeriod MONTHLY
-
BIMESTRIAL
public static final BillingPeriod BIMESTRIAL
-
QUARTERLY
public static final BillingPeriod QUARTERLY
-
TRIANNUAL
public static final BillingPeriod TRIANNUAL
-
BIANNUAL
public static final BillingPeriod BIANNUAL
-
ANNUAL
public static final BillingPeriod ANNUAL
-
SESQUIENNIAL
public static final BillingPeriod SESQUIENNIAL
-
BIENNIAL
public static final BillingPeriod BIENNIAL
-
TRIENNIAL
public static final BillingPeriod TRIENNIAL
-
NO_BILLING_PERIOD
public static final BillingPeriod NO_BILLING_PERIOD
-
-
Method Detail
-
values
public static BillingPeriod[] 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 (BillingPeriod c : BillingPeriod.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BillingPeriod 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
-
getPeriod
public org.joda.time.Period getPeriod()
-
-