Enum Class SearchPattern

java.lang.Object
java.lang.Enum<SearchPattern>
com.vonage.client.numbers.SearchPattern
All Implemented Interfaces:
Serializable, Comparable<SearchPattern>, java.lang.constant.Constable

public enum SearchPattern extends Enum<SearchPattern>
Provided to calls that match substrings, to indicate which part of the string should be considered a match.
  • Enum Constant Details

    • STARTS_WITH

      public static final SearchPattern 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

      public static final SearchPattern ANYWHERE
      Search for numbers that contain the pattern.
    • ENDS_WITH

      public static final SearchPattern ENDS_WITH
      Search for numbers that end with the pattern.
  • Method Details

    • values

      public static SearchPattern[] 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

      public static SearchPattern valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getValue

      public int getValue()