java.lang.Objectcom.google.gson.internal.UnsafeAllocator
public abstract class UnsafeAllocator
Do sneaky things to allocate objects without invoking their constructors.
Constructor Summary | |
---|---|
UnsafeAllocator()
|
Method Summary | ||
---|---|---|
static UnsafeAllocator |
create()
|
|
abstract
|
newInstance(java.lang.Class<T> c)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UnsafeAllocator()
Method Detail |
---|
public abstract <T> T newInstance(java.lang.Class<T> c) throws java.lang.Exception
java.lang.Exception
public static UnsafeAllocator create()