Java 类org.apache.commons.collections.iterators.ArrayListIterator 实例源码

项目:owasp-esapi-java    文件:DelegatingACR.java   
/**
 * Convert an array of fully qualified class names into an array of Class objects
 * @param parameterClassNames
 * @return
 */
protected final Class[] getParameters(String[] parameterClassNames) {
    if(parameterClassNames == null) {
        return new Class[0];
    }
    Vector<Class> classes = new Vector<Class>();
    Iterator<String> classNames = new ArrayListIterator(parameterClassNames);
    while(classNames.hasNext()) {
        classes.add(getClass(classNames.next(), "parameter"));
    }
    return classes.toArray(new Class[classes.size()]);
}