private static Class<?>[] getTypes(final Object... args) {
    final Class<?>[] argTypes = new Class<?>[args.length];
    for (int i = 0; i < argTypes.length; i++) {
      argTypes[i] = args[i].getClass();
    }
    return argTypes;
  }
private static Class < ? > [ ] getTypes ( final Object ... args ) { final Class < ? > [ ] argTypes = new Class < ? > [ args . length ] ; for ( int i = 0 ; i < argTypes . length ; i ++ ) { argTypes [ i ] = args [ i ] . getClass ( ) ; } return argTypes ; }
Get the Class of all the objects

@param args The objects to get the Classes from
@return The classes as an array