Enum Class LookupOutcome

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

public enum LookupOutcome extends Enum<LookupOutcome>
Enum representing whether all information about a phone number has been returned.

0 is success, 1 is a partial success (some fields populated), 2 is failure.

  • Enum Constant Details

  • Method Details

    • values

      public static LookupOutcome[] 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 LookupOutcome 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
    • getCode

      public int getCode()
      Returns:
      The code used to create this enum.
    • fromInt

      public static LookupOutcome fromInt(Integer code)