Package org.jclouds.packet.domain
Enum BillingCycle
- java.lang.Object
-
- java.lang.Enum<BillingCycle>
-
- org.jclouds.packet.domain.BillingCycle
-
- All Implemented Interfaces:
Serializable,Comparable<BillingCycle>
public enum BillingCycle extends Enum<BillingCycle>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description HOURLYMONTHLYUNRECOGNIZED
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BillingCyclefromValue(String value)Stringvalue()static BillingCyclevalueOf(String name)Returns the enum constant of this type with the specified name.static BillingCycle[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
HOURLY
public static final BillingCycle HOURLY
-
MONTHLY
public static final BillingCycle MONTHLY
-
UNRECOGNIZED
public static final BillingCycle UNRECOGNIZED
-
-
Method Detail
-
values
public static BillingCycle[] 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 (BillingCycle c : BillingCycle.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BillingCycle 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
-
value
public String value()
-
fromValue
public static BillingCycle fromValue(String value)
-
-