Package com.vonage.client.numbers
Enum Class SearchPattern
- All Implemented Interfaces:
Serializable,Comparable<SearchPattern>,java.lang.constant.Constable
Provided to calls that match substrings, to indicate which part of the string should be considered a match.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSearch for numbers that contain the pattern.Search for numbers that end with the pattern.Search for numbers that start with the pattern (Note: all numbers are in E.164 format, so the starting pattern includes the country code, such as 1 for USA). -
Method Summary
Modifier and TypeMethodDescriptionintgetValue()static SearchPatternReturns the enum constant of this class with the specified name.static SearchPattern[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
STARTS_WITH
Search for numbers that start with the pattern (Note: all numbers are in E.164 format, so the starting pattern includes the country code, such as 1 for USA). -
ANYWHERE
Search for numbers that contain the pattern. -
ENDS_WITH
Search for numbers that end with the pattern.
-
-
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
-
getValue
-