@Test public void test_commonSuperclasses_interfaces() { Set<Class<?>> l = Types.commonSuperclasses(Iab.class, Ib2.class); assertThat(l, contains(Object.class, Ib.class)); }
public static Set<Class<?>> commonSuperclasses(Class<?>... classes) { return commonSuperclasses(Arrays.asList(classes)); }
Types { public static Set<Class<?>> commonSuperclasses(Class<?>... classes) { return commonSuperclasses(Arrays.asList(classes)); } }
Types { public static Set<Class<?>> commonSuperclasses(Class<?>... classes) { return commonSuperclasses(Arrays.asList(classes)); }  }
Types { public static Set<Class<?>> commonSuperclasses(Class<?>... classes) { return commonSuperclasses(Arrays.asList(classes)); }  static Set<Class<?>> getSuperclasses(Class<?> clazz); static Set<Class<?>> superclasses(Class<?> clazz); static Set<Class<?>> commonSuperclasses(Class<?>... classes); static Set<Class<?>> commonSuperclasses(Iterable<Class<?>> classes); static List<Class<?>> lowestCommonSuperclasses(Class<?>... classes); static List<Class<?>> lowestCommonSuperclasses(Iterable<Class<?>> classes); static List<Class<?>> lowestClasses(Class<?>... classes); static List<Class<?>> lowestClasses(Collection<Class<?>> classes); }
Types { public static Set<Class<?>> commonSuperclasses(Class<?>... classes) { return commonSuperclasses(Arrays.asList(classes)); }  static Set<Class<?>> getSuperclasses(Class<?> clazz); static Set<Class<?>> superclasses(Class<?> clazz); static Set<Class<?>> commonSuperclasses(Class<?>... classes); static Set<Class<?>> commonSuperclasses(Iterable<Class<?>> classes); static List<Class<?>> lowestCommonSuperclasses(Class<?>... classes); static List<Class<?>> lowestCommonSuperclasses(Iterable<Class<?>> classes); static List<Class<?>> lowestClasses(Class<?>... classes); static List<Class<?>> lowestClasses(Collection<Class<?>> classes);  }