Package com.twilio.type
Enum PhoneNumberPrice.Type
- java.lang.Object
-
- java.lang.Enum<PhoneNumberPrice.Type>
-
- com.twilio.type.PhoneNumberPrice.Type
-
- All Implemented Interfaces:
Serializable,Comparable<PhoneNumberPrice.Type>
- Enclosing class:
- PhoneNumberPrice
public static enum PhoneNumberPrice.Type extends Enum<PhoneNumberPrice.Type>
Possible phone number type.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PhoneNumberPrice.TypeforValue(String value)Returns the type of phone number given a string value.StringtoString()static PhoneNumberPrice.TypevalueOf(String name)Returns the enum constant of this type with the specified name.static PhoneNumberPrice.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LOCAL
public static final PhoneNumberPrice.Type LOCAL
-
MOBILE
public static final PhoneNumberPrice.Type MOBILE
-
NATIONAL
public static final PhoneNumberPrice.Type NATIONAL
-
TOLLFREE
public static final PhoneNumberPrice.Type TOLLFREE
-
-
Method Detail
-
values
public static PhoneNumberPrice.Type[] 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 (PhoneNumberPrice.Type c : PhoneNumberPrice.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PhoneNumberPrice.Type 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
-
toString
public String toString()
- Overrides:
toStringin classEnum<PhoneNumberPrice.Type>
-
forValue
public static PhoneNumberPrice.Type forValue(String value)
Returns the type of phone number given a string value.- Parameters:
value- type of phone number- Returns:
- the type of phone number if valid; null otherwise
-
-