Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public Object newInstance(Class<?> clazz)
Return a new instance of the specified class. The recommended way is
without calling any constructor. This is usually done by doing like
ObjectInputStream.readObject() which is JVM specific.
- Specified by:
newInstance in interface
clazz - class to instantiate
- new instance of clazz
Copyright © 2001–2018 EasyMock contributors. All rights reserved.