Class JSONDeserializer.ObjectInstantiation

  • Enclosing class:
    JSONDeserializer

    private static class JSONDeserializer.ObjectInstantiation
    extends java.lang.Object
    Used to hold object instantiations temporarily before their fields can be populated, so that object references can be resolved in the same order during deserialization as they were created during serialization.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) java.lang.Object jsonVal
      The JSONObject or JSONArray to recurse into.
      (package private) java.lang.Object objectInstance
      The Java object instance to populate from the JSONObject or JSONArray.
      (package private) java.lang.reflect.Type type
      The resolved type of the object instance.
    • Constructor Summary

      Constructors 
      Constructor Description
      ObjectInstantiation​(java.lang.Object objectInstance, java.lang.reflect.Type type, java.lang.Object jsonVal)
      Constructor.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • jsonVal

        java.lang.Object jsonVal
        The JSONObject or JSONArray to recurse into.
      • objectInstance

        java.lang.Object objectInstance
        The Java object instance to populate from the JSONObject or JSONArray.
      • type

        java.lang.reflect.Type type
        The resolved type of the object instance.
    • Constructor Detail

      • ObjectInstantiation

        public ObjectInstantiation​(java.lang.Object objectInstance,
                                   java.lang.reflect.Type type,
                                   java.lang.Object jsonVal)
        Constructor.
        Parameters:
        objectInstance - the object instance
        type - the type
        jsonVal - the json val