Package com.vonage.client.numbers
Enum Class Type
- All Implemented Interfaces:
Serializable,Comparable<Type>,java.lang.constant.Constable
Enumeration representing the type of number.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic TypefromString(String type) Creates an instance of this enum from its serialized string representation.getType()Deprecated.toString()static TypeReturns the enum constant of this class with the specified name.static Type[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LANDLINE
-
MOBILE_LVN
-
LANDLINE_TOLL_FREE
-
UNKNOWN
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getType
Deprecated.UsetoString()Serialized name.- Returns:
- The string value.
-
toString
-
fromString
Creates an instance of this enum from its serialized string representation.- Parameters:
type- The number type as a string.- Returns:
- An enum representation of the number type.
-
toString()