public class Android17Instantiator<T> extends java.lang.Object implements ObjectInstantiator<T>
ObjectStreamClass.| Modifier and Type | Field and Description |
|---|---|
private java.lang.reflect.Method |
newInstanceMethod |
private java.lang.Integer |
objectConstructorId |
private java.lang.Class<T> |
type |
| Constructor and Description |
|---|
Android17Instantiator(java.lang.Class<T> type) |
| Modifier and Type | Method and Description |
|---|---|
private static java.lang.Integer |
findConstructorIdForJavaLangObjectConstructor() |
private static java.lang.reflect.Method |
getNewInstanceMethod() |
T |
newInstance()
Returns a new instance of an object.
|
private final java.lang.Class<T> type
private final java.lang.reflect.Method newInstanceMethod
private final java.lang.Integer objectConstructorId
public Android17Instantiator(java.lang.Class<T> type)
public T newInstance()
ObjectInstantiatornewInstance in interface ObjectInstantiator<T>private static java.lang.reflect.Method getNewInstanceMethod()
private static java.lang.Integer findConstructorIdForJavaLangObjectConstructor()