com.google.gson.internal
Class UnsafeAllocator

java.lang.Object
  extended by 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

Constructor Summary
UnsafeAllocator()
           
 
Method Summary
static UnsafeAllocator create()
           
abstract
<T> T
newInstance(Class<T> c)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnsafeAllocator

public UnsafeAllocator()
Method Detail

newInstance

public abstract <T> T newInstance(Class<T> c)
                       throws Exception
Throws:
Exception

create

public static UnsafeAllocator create()


Copyright © 2012. All Rights Reserved.