public class Android18Instantiator<T> extends java.lang.Object implements ObjectInstantiator<T>
newInstance now takes a long in parameter| Modifier and Type | Field and Description |
|---|---|
private java.lang.reflect.Method |
newInstanceMethod |
private java.lang.Long |
objectConstructorId |
private java.lang.Class<T> |
type |
| Constructor and Description |
|---|
Android18Instantiator(java.lang.Class<T> type) |
| Modifier and Type | Method and Description |
|---|---|
private static java.lang.Long |
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.Long objectConstructorId
public Android18Instantiator(java.lang.Class<T> type)
public T newInstance()
ObjectInstantiatornewInstance in interface ObjectInstantiator<T>private static java.lang.reflect.Method getNewInstanceMethod()
private static java.lang.Long findConstructorIdForJavaLangObjectConstructor()