Enum Class JsonPathConfig.NumberReturnType

java.lang.Object
java.lang.Enum<JsonPathConfig.NumberReturnType>
io.restassured.path.json.config.JsonPathConfig.NumberReturnType
All Implemented Interfaces:
Serializable, Comparable<JsonPathConfig.NumberReturnType>, Constable
Enclosing class:
JsonPathConfig

public static enum JsonPathConfig.NumberReturnType extends Enum<JsonPathConfig.NumberReturnType>
Specifies what kind of numbers to return.

To specify the return type of decimal numbers parsed from the json, use the following:

  • FLOAT_AND_DOUBLE
  • BIG_DECIMAL
  • DOUBLE
To specify the return type of non-decimal numbers in the json, use the following:
  • BIG_INTEGER
  • Enum Constant Details

  • Method Details

    • values

      public static JsonPathConfig.NumberReturnType[] 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 JsonPathConfig.NumberReturnType 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
    • isFloatOrDouble

      public final boolean isFloatOrDouble()
      Returns a boolean indicating whether this type is included in those that deal with floats or doubles exclusive of BigDecimal.
      Returns:
      true if value is FLOAT_AND_DOUBLE or DOUBLE, false otherwise.