Class AndroidSerializationInstantiator<T>

    • Field Detail

      • type

        private final java.lang.Class<T> type
      • objectStreamClass

        private final java.io.ObjectStreamClass objectStreamClass
      • newInstanceMethod

        private final java.lang.reflect.Method newInstanceMethod
    • Constructor Detail

      • AndroidSerializationInstantiator

        public AndroidSerializationInstantiator​(java.lang.Class<T> type)
    • Method Detail

      • newInstance

        public T newInstance()
        Description copied from interface: ObjectInstantiator
        Returns a new instance of an object. The returned object's class is defined by the implementation.
        Specified by:
        newInstance in interface ObjectInstantiator<T>
        Returns:
        A new instance of an object.
      • getNewInstanceMethod

        private static java.lang.reflect.Method getNewInstanceMethod()