I have a set of functions to configure a set of parameters in Java of type like this:
public void Util.setParametros(Integer par) {}
public void Util.setParametros(String par) {}
public void Util.setParametros(Long par) {}
public void Util.setParametros(Double par) {}
public void Util.setParametros(Boolean par) {}
Now I have another function that uses this and it gets an array of parameters with the various types it has. For example:
public List buscaPorWhere(String where, Object[] parametros)
And I would need to know what type it is to be able to call the method like this:
Util.setParametros((Integer) parametros[1]);
How could I do this?