com.google.gson.internal
Class UnsafeAllocator
java.lang.Object
com.google.gson.internal.UnsafeAllocator
public abstract class UnsafeAllocator
- extends Object
Do sneaky things to allocate objects without invoking their constructors.
- Author:
- Joel Leitch, Jesse Wilson
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UnsafeAllocator
public UnsafeAllocator()
newInstance
public abstract <T> T newInstance(Class<T> c)
throws Exception
- Throws:
Exception
create
public static UnsafeAllocator create()
Copyright © 2012. All Rights Reserved.