Code example for Constructor

Methods: getParameterTypes

0
        tryToMakeAccessible(); 
    } 
 
    @Override 
    protected Class<?>[] getParameterTypeArray() {
        return constructor.getParameterTypes();
    } 
 
    /** 
     * Returns a new instance for the given arguments. 
     * 
     * @param arguments the arguments. 
     * @return a new instance. 
     * @see Constructor#newInstance(Object...) 
     */ 
    public T newInstance(final Object... arguments) {
        return UncheckedCall.execute(new Callable<T>() {
            @Override 
            public T call() throws InvocationTargetException, InstantiationException, IllegalAccessException { 
                return constructor.newInstance(arguments);
            }