/** * is compatible. * * @param cs class array. * @param os object array. * @return compatible or not. */ public static boolean isCompatible(Class<?>[] cs, Object[] os) { int len = cs.length; if (len != os.length) return false; if (len == 0) return true; for (int i = 0; i < len; i++) if (!isCompatible(cs[i], os[i])) return false; return true; }
/** * is compatible. * * @param cs class array. * @param os object array. * @return compatible or not. */ public static boolean isCompatible(Class<?>[] cs, Object[] os) { int len = cs.length; if (len != os.length) return false; if (len == 0) return true; for (int i = 0; i < len; i++) if (!isCompatible(cs[i], os[i])) return false; return true; }
/** * is compatible. * * @param cs class array. * @param os object array. * @return compatible or not. */ public static boolean isCompatible(Class<?>[] cs, Object[] os) { int len = cs.length; if( len != os.length ) return false; if( len == 0 ) return true; for(int i=0;i<len;i++) if( !isCompatible(cs[i], os[i]) ) return false; return true; }
/** * is compatible. * * @param cs class array. * @param os object array. * @return compatible or not. */ public static boolean isCompatible(Class<?>[] cs, Object[] os) { int len = cs.length; if( len != os.length ) return false; if( len == 0 ) return true; for(int i=0;i<len;i++) if( !isCompatible(cs[i], os[i]) ) return false; return true; }