public abstract class UnsafeAllocator
extends java.lang.Object
Constructor and Description |
---|
UnsafeAllocator() |
Modifier and Type | Method and Description |
---|---|
static UnsafeAllocator |
create() |
abstract <T> T |
newInstance(java.lang.Class<T> clazz)
This method instantiates an object of given classes without
calling a constructor for the object.
|
public abstract <T> T newInstance(java.lang.Class<T> clazz) throws java.lang.InstantiationException
clazz
- java.lang.InstantiationException
- Thrown on any problem during instantiation.public static UnsafeAllocator create()