Class UnsafeAllocator


  • public abstract class UnsafeAllocator
    extends java.lang.Object
    Do sneaky things to allocate objects without invoking their constructors.
    Author:
    Joel Leitch, Jesse Wilson
    • Constructor Summary

      Constructors 
      Constructor Description
      UnsafeAllocator()  
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      abstract <T> T newInstance​(java.lang.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​(java.lang.Class<T> c)
                                   throws java.lang.Exception
        Throws:
        java.lang.Exception