/** * @param declaringClass * @return the ordered list of declared constructors for the given class */ public static List<Constructor<?>> getDeclaredConstructors(Class<?> declaringClass) { Preconditions.checkNotNull(declaringClass); List<Constructor<?>> declaredConstructors = Arrays.asList(SecurityActions.getDeclaredConstructors(declaringClass)); Collections.sort(declaredConstructors, CONSTRUCTOR_COMPARATOR_INSTANCE); return declaredConstructors; }
/** * @param declaringClass * @return the ordered list of declared constructors for the given class */ public static List<Constructor<?>> getDeclaredConstructors(Class<?> declaringClass) { Preconditions.checkNotNull(declaringClass); List<Constructor<?>> declaredConstructors = Arrays.asList(SecurityActions.getDeclaredConstructors(declaringClass)); Collections.sort(declaredConstructors, CONSTRUCTOR_COMPARATOR_INSTANCE); return declaredConstructors; }
/** * @param declaringClass * @return the ordered list of declared constructors for the given class */ public static List<Constructor<?>> getDeclaredConstructors(Class<?> declaringClass) { Preconditions.checkNotNull(declaringClass); List<Constructor<?>> declaredConstructors = Arrays.asList(SecurityActions.getDeclaredConstructors(declaringClass)); Collections.sort(declaredConstructors, CONSTRUCTOR_COMPARATOR_INSTANCE); return declaredConstructors; }
/** * @param declaringClass * @return the ordered list of declared constructors for the given class */ public static List<Constructor<?>> getDeclaredConstructors(Class<?> declaringClass) { Preconditions.checkNotNull(declaringClass); List<Constructor<?>> declaredConstructors = Arrays.asList(SecurityActions.getDeclaredConstructors(declaringClass)); Collections.sort(declaredConstructors, CONSTRUCTOR_COMPARATOR_INSTANCE); return declaredConstructors; }
/** * @param declaringClass * @return the ordered list of declared constructors for the given class */ public static List<Constructor<?>> getDeclaredConstructors(Class<?> declaringClass) { Preconditions.checkNotNull(declaringClass); List<Constructor<?>> declaredConstructors = Arrays.asList(SecurityActions.getDeclaredConstructors(declaringClass)); Collections.sort(declaredConstructors, CONSTRUCTOR_COMPARATOR_INSTANCE); return declaredConstructors; }
/** * @param declaringClass * @return the ordered list of declared constructors for the given class */ public static List<Constructor<?>> getDeclaredConstructors(Class<?> declaringClass) { Preconditions.checkNotNull(declaringClass); List<Constructor<?>> declaredConstructors = Arrays.asList(SecurityActions.getDeclaredConstructors(declaringClass)); Collections.sort(declaredConstructors, CONSTRUCTOR_COMPARATOR_INSTANCE); return declaredConstructors; }