protected Class[] getInterfaces(Class[] classes) { List list = new ArrayList(); for (int i = 0; i < classes.length; i++) { ReflectUtils.addAllInterfaces(classes[i], list); } return (Class[])list.toArray(new Class[list.size()]); }
public static List addAllInterfaces(Class type, List list) { Class superclass = type.getSuperclass(); if (superclass != null) { list.addAll(Arrays.asList(type.getInterfaces())); addAllInterfaces(superclass, list); } return list; }
protected Class[] getInterfaces(Class[] classes) { List list = new ArrayList(); for (int i = 0; i < classes.length; i++) { ReflectUtils.addAllInterfaces(classes[i], list); } return (Class[])list.toArray(new Class[list.size()]); }
public static List addAllInterfaces(Class type, List list) { Class superclass = type.getSuperclass(); if (superclass != null) { list.addAll(Arrays.asList(type.getInterfaces())); addAllInterfaces(superclass, list); } return list; }
Route(Object[] delegates) { Map map = new HashMap(); ArrayList collect = new ArrayList(); for (int i = 0; i < delegates.length; i++) { Class delegate = delegates[i].getClass(); collect.clear(); ReflectUtils.addAllInterfaces(delegate, collect); for (Iterator it = collect.iterator(); it.hasNext();) { Class iface = (Class)it.next(); if (!map.containsKey(iface)) { map.put(iface, new Integer(i)); } } } classes = new Class[map.size()]; route = new int[map.size()]; int index = 0; for (Iterator it = map.keySet().iterator(); it.hasNext();) { Class key = (Class)it.next(); classes[index] = key; route[index] = ((Integer)map.get(key)).intValue(); index++; } } }
Route(Object[] delegates) { Map map = new HashMap(); ArrayList collect = new ArrayList(); for (int i = 0; i < delegates.length; i++) { Class delegate = delegates[i].getClass(); collect.clear(); ReflectUtils.addAllInterfaces(delegate, collect); for (Iterator it = collect.iterator(); it.hasNext();) { Class iface = (Class)it.next(); if (!map.containsKey(iface)) { map.put(iface, new Integer(i)); } } } classes = new Class[map.size()]; route = new int[map.size()]; int index = 0; for (Iterator it = map.keySet().iterator(); it.hasNext();) { Class key = (Class)it.next(); classes[index] = key; route[index] = ((Integer)map.get(key)).intValue(); index++; } } }
protected Class[] getInterfaces(Class[] classes) { List list = new ArrayList(); for (int i = 0; i < classes.length; i++) { ReflectUtils.addAllInterfaces(classes[i], list); } return (Class[])list.toArray(new Class[list.size()]); }
protected Class[] getInterfaces(Class[] classes) { List list = new ArrayList(); for (int i = 0; i < classes.length; i++) { ReflectUtils.addAllInterfaces(classes[i], list); } return (Class[])list.toArray(new Class[list.size()]); }
public static List addAllInterfaces(Class type, List list) { Class superclass = type.getSuperclass(); if (superclass != null) { list.addAll(Arrays.asList(type.getInterfaces())); addAllInterfaces(superclass, list); } return list; }
public static List addAllInterfaces(Class type, List list) { Class superclass = type.getSuperclass(); if (superclass != null) { list.addAll(Arrays.asList(type.getInterfaces())); addAllInterfaces(superclass, list); } return list; }
protected Class[] getInterfaces(Class[] classes) { List list = new ArrayList(); for (int i = 0; i < classes.length; i++) { ReflectUtils.addAllInterfaces(classes[i], list); } return (Class[])list.toArray(new Class[list.size()]); }
public static List addAllInterfaces(Class type, List list) { Class superclass = type.getSuperclass(); if (superclass != null) { list.addAll(Arrays.asList(type.getInterfaces())); addAllInterfaces(superclass, list); } return list; }
Route(Object[] delegates) { Map map = new HashMap(); ArrayList collect = new ArrayList(); for (int i = 0; i < delegates.length; i++) { Class delegate = delegates[i].getClass(); collect.clear(); ReflectUtils.addAllInterfaces(delegate, collect); for (Iterator it = collect.iterator(); it.hasNext();) { Class iface = (Class)it.next(); if (!map.containsKey(iface)) { map.put(iface, new Integer(i)); } } } classes = new Class[map.size()]; route = new int[map.size()]; int index = 0; for (Iterator it = map.keySet().iterator(); it.hasNext();) { Class key = (Class)it.next(); classes[index] = key; route[index] = ((Integer)map.get(key)).intValue(); index++; } } }
Route(Object[] delegates) { Map map = new HashMap(); ArrayList collect = new ArrayList(); for (int i = 0; i < delegates.length; i++) { Class delegate = delegates[i].getClass(); collect.clear(); ReflectUtils.addAllInterfaces(delegate, collect); for (Iterator it = collect.iterator(); it.hasNext();) { Class iface = (Class)it.next(); if (!map.containsKey(iface)) { map.put(iface, new Integer(i)); } } } classes = new Class[map.size()]; route = new int[map.size()]; int index = 0; for (Iterator it = map.keySet().iterator(); it.hasNext();) { Class key = (Class)it.next(); classes[index] = key; route[index] = ((Integer)map.get(key)).intValue(); index++; } } }
Route(Object[] delegates) { Map map = new HashMap(); ArrayList collect = new ArrayList(); for (int i = 0; i < delegates.length; i++) { Class delegate = delegates[i].getClass(); collect.clear(); ReflectUtils.addAllInterfaces(delegate, collect); for (Iterator it = collect.iterator(); it.hasNext();) { Class iface = (Class)it.next(); if (!map.containsKey(iface)) { map.put(iface, new Integer(i)); } } } classes = new Class[map.size()]; route = new int[map.size()]; int index = 0; for (Iterator it = map.keySet().iterator(); it.hasNext();) { Class key = (Class)it.next(); classes[index] = key; route[index] = ((Integer)map.get(key)).intValue(); index++; } } }