Enum JsonParser.NumberTypeFP

java.lang.Object
java.lang.Enum<JsonParser.NumberTypeFP>
com.fasterxml.jackson.core.JsonParser.NumberTypeFP
All Implemented Interfaces:
Serializable, Comparable<JsonParser.NumberTypeFP>, java.lang.constant.Constable
Enclosing class:
JsonParser

public static enum JsonParser.NumberTypeFP extends Enum<JsonParser.NumberTypeFP>
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 Constants
    Enum Constant
    Description
    Unlimited precision, decimal (10-based) values
    Standard IEEE-754 double-precision 64-bit binary value
    Special "mini-float" that some binary formats support.
    Standard IEEE-754 single-precision 32-bit binary value
    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, value 0.1 has no exact binary representation whereas 0.25 has exact representation in every binary type supported)
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the enum constant of this type with the specified name.
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • FLOAT16

      public static final JsonParser.NumberTypeFP FLOAT16
      Special "mini-float" that some binary formats support.
    • FLOAT32

      public static final JsonParser.NumberTypeFP FLOAT32
      Standard IEEE-754 single-precision 32-bit binary value
    • DOUBLE64

      public static final JsonParser.NumberTypeFP DOUBLE64
      Standard IEEE-754 double-precision 64-bit binary value
    • BIG_DECIMAL

      public static final JsonParser.NumberTypeFP BIG_DECIMAL
      Unlimited precision, decimal (10-based) values
    • UNKNOWN

      public static final JsonParser.NumberTypeFP 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, value 0.1 has no exact binary representation whereas 0.25 has exact representation in every binary type supported)
  • Method Details

    • values

      public static JsonParser.NumberTypeFP[] 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

      public static JsonParser.NumberTypeFP valueOf(String name)
      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 name
      NullPointerException - if the argument is null