Java Object Type Case cast(Object[] parameters, Class[] types)

Here you can find the source of cast(Object[] parameters, Class[] types)

Description

cast

License

Apache License

Declaration

static Object[] cast(Object[] parameters, Class<?>[] types) 

Method Source Code

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

public class Main {
    static Object[] cast(Object[] parameters, Class<?>[] types) {
        for (int i = 0; i < parameters.length; i++) {
            parameters[i] = types[i].cast(parameters[i]);
        }//from ww w.j  av a2  s .c  om

        return parameters;
    }
}

Related

  1. cast(Object source)
  2. cast(Object val, Class type)
  3. cast(Object value, String sqlType)
  4. cast(Object x)
  5. cast(Object x)
  6. cast(String type)
  7. castAndThrow(Throwable e)
  8. castArray(Object[] array, T[] targetArray)
  9. castAs(Class clazz, Object obj)