public enum PricingPeriod extends Enum<PricingPeriod>
| Enum Constant and Description |
|---|
DAY |
HOUR |
MINUTE |
MONTH |
QUARTER |
WEEK |
YEAR |
| Modifier and Type | Method and Description |
|---|---|
static PricingPeriod |
fromId(int id) |
int |
id() |
static PricingPeriod |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PricingPeriod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PricingPeriod MINUTE
public static final PricingPeriod HOUR
public static final PricingPeriod DAY
public static final PricingPeriod WEEK
public static final PricingPeriod MONTH
public static final PricingPeriod QUARTER
public static final PricingPeriod YEAR
public static PricingPeriod[] values()
for (PricingPeriod c : PricingPeriod.values()) System.out.println(c);
public static PricingPeriod 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 id()
public static PricingPeriod fromId(int id)
Copyright © 2008-2014 Abiquo Holdings S.L.. All Rights Reserved.