Package com.fasterxml.jackson.core
Enum JsonParser.NumberTypeFP
- All Implemented Interfaces:
Serializable
,Comparable<JsonParser.NumberTypeFP>
,java.lang.constant.Constable
- Enclosing class:
JsonParser
Enumeration of possible physical Floating-Point types that
underlying format uses. Used to indicate most accurate (and
efficient) representation if known (if not known,
UNKNOWN
is used).- Since:
- 2.17
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionUnlimited precision, decimal (10-based) valuesStandard IEEE-754 double-precision 64-bit binary valueSpecial "mini-float" that some binary formats support.Standard IEEE-754 single-precision 32-bit binary valueConstant used when type is not known, or there is no specific type to match: most commonly used for textual formats like JSON where representation does not necessarily have single easily detectable optimal representation (for example, value0.1
has no exact binary representation whereas0.25
has exact representation in every binary type supported) -
Method Summary
Modifier and TypeMethodDescriptionstatic JsonParser.NumberTypeFP
Returns the enum constant of this type with the specified name.static JsonParser.NumberTypeFP[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
FLOAT16
Special "mini-float" that some binary formats support. -
FLOAT32
Standard IEEE-754 single-precision 32-bit binary value -
DOUBLE64
Standard IEEE-754 double-precision 64-bit binary value -
BIG_DECIMAL
Unlimited precision, decimal (10-based) values -
UNKNOWN
Constant used when type is not known, or there is no specific type to match: most commonly used for textual formats like JSON where representation does not necessarily have single easily detectable optimal representation (for example, value0.1
has no exact binary representation whereas0.25
has exact representation in every binary type supported)
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-