/** * Finds a class type that is in the containing collection, * will always return something (failsafe to Object.class) * @param collection * @return the class type contained in this collecion */ @SuppressWarnings("unchecked") public static Class<?> getClassFromCollection(Collection collection) { return ClassLoaderUtils.getClassFromCollection(collection); }
/** * Finds a class type that is in the containing collection, * will always return something (failsafe to Object.class) * @param collection * @return the class type contained in this collecion */ @SuppressWarnings("unchecked") public static Class<?> getClassFromCollection(Collection collection) { return ClassLoaderUtils.getClassFromCollection(collection); }