public abstract class UnsafeAllocator
extends java.lang.Object
Constructor and Description |
---|
UnsafeAllocator() |
Modifier and Type | Method and Description |
---|---|
(package private) static void |
assertInstantiable(java.lang.Class<?> c)
Check if the class can be instantiated by unsafe allocator.
|
static UnsafeAllocator |
create() |
abstract <T> T |
newInstance(java.lang.Class<T> c) |
public abstract <T> T newInstance(java.lang.Class<T> c) throws java.lang.Exception
java.lang.Exception
public static UnsafeAllocator create()
static void assertInstantiable(java.lang.Class<?> c)
UnsupportedOperationException
c
- instance of the class to be checked