Serialized Form

  • Package io.github.astrapi69.json.factory

    • Class io.github.astrapi69.json.factory.CustomJsonNodeFactory

      class CustomJsonNodeFactory extends com.fasterxml.jackson.databind.node.JsonNodeFactory implements Serializable
      serialVersionUID:
      8807395553661461181L
      • Serialized Fields

        • delegate
          com.fasterxml.jackson.databind.node.JsonNodeFactory delegate
          the delegation JsonNodeFactory object
        • locationMapping
          List<Map.Entry<com.fasterxml.jackson.databind.JsonNode,com.fasterxml.jackson.core.JsonLocation>> locationMapping
          Why isn't this a map? Well, when the nodes are created, they're all empty and a node's hashCode is based on its children. So if you use a map and put the node in, the node's hashCode is based on no children. When you look up your node later, it has children, so the hashCodes are different. Instead, you have to iterate through a list and find matches once the document has been completely parsed
        • parserFactory
          CustomParserFactory parserFactory
    • Class io.github.astrapi69.json.factory.CustomParserFactory

      class CustomParserFactory extends com.fasterxml.jackson.core.JsonFactory implements Serializable
      • Serialized Fields

        • parser
          com.fasterxml.jackson.core.JsonParser parser
          the JsonParser object