Package com.google.i18n.phonenumbers
Enum ShortNumberInfo.ShortNumberCost
- java.lang.Object
-
- java.lang.Enum<ShortNumberInfo.ShortNumberCost>
-
- com.google.i18n.phonenumbers.ShortNumberInfo.ShortNumberCost
-
- All Implemented Interfaces:
Serializable
,Comparable<ShortNumberInfo.ShortNumberCost>
- Enclosing class:
- ShortNumberInfo
public static enum ShortNumberInfo.ShortNumberCost extends Enum<ShortNumberInfo.ShortNumberCost>
Cost categories of short numbers.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description PREMIUM_RATE
STANDARD_RATE
TOLL_FREE
UNKNOWN_COST
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ShortNumberInfo.ShortNumberCost
valueOf(String name)
Returns the enum constant of this type with the specified name.static ShortNumberInfo.ShortNumberCost[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TOLL_FREE
public static final ShortNumberInfo.ShortNumberCost TOLL_FREE
-
STANDARD_RATE
public static final ShortNumberInfo.ShortNumberCost STANDARD_RATE
-
PREMIUM_RATE
public static final ShortNumberInfo.ShortNumberCost PREMIUM_RATE
-
UNKNOWN_COST
public static final ShortNumberInfo.ShortNumberCost UNKNOWN_COST
-
-
Method Detail
-
values
public static ShortNumberInfo.ShortNumberCost[] 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 (ShortNumberInfo.ShortNumberCost c : ShortNumberInfo.ShortNumberCost.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ShortNumberInfo.ShortNumberCost 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
-
-