Package io.restassured.path.json.config
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
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
- BIG_INTEGER
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionConvert all non-integer numbers to BigDecimalConverts all non-decimal numbers to BigIntegerConvert all non-integer numbers to doublesConvert all non-integer numbers to floats and doubles (depending on the size of the number) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanReturns a boolean indicating whether this type is included in those that deal with floats or doubles exclusive of BigDecimal.Returns the enum constant of this class with the specified name.static JsonPathConfig.NumberReturnType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FLOAT_AND_DOUBLE
Convert all non-integer numbers to floats and doubles (depending on the size of the number) -
BIG_DECIMAL
Convert all non-integer numbers to BigDecimal -
DOUBLE
Convert all non-integer numbers to doubles -
BIG_INTEGER
Converts all non-decimal numbers to BigInteger
-
-
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
-
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:
trueif value isFLOAT_AND_DOUBLEorDOUBLE,falseotherwise.
-