Java Char Array Create toClassArray(Object[] params)

Here you can find the source of toClassArray(Object[] params)

Description

to Class Array

License

LGPL

Declaration

public static Class[] toClassArray(Object[] params) 

Method Source Code

//package com.java2s;
//License from project: LGPL 

public class Main {
    public static Class[] toClassArray(Object[] params) {
        if (null == params) {
            return new Class[0];
        }//w ww .jav  a2s  .c o m
        Class[] classParams = new Class[params.length];
        for (int i = 0; i < params.length; i++) {
            classParams[i] = params[i].getClass();
        }
        return classParams;
    }
}

Related

  1. toCharArray(String string)
  2. toCharArray(String[] v)
  3. toCharArray(StringBuffer stringbuffer)
  4. toCharArrays(String[] a)
  5. toClassArray(final Object[] args)
  6. toClassArray(String[] classNames)
  7. toClasses(ClassLoader classLoader, String[] argClassNames)
  8. toClasses(final Object... parameters)
  9. toClasses(Object[] args)