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.Exceptionpublic static UnsafeAllocator create()
static void assertInstantiable(java.lang.Class<?> c)
UnsupportedOperationExceptionc - instance of the class to be checked