/** * @param index * @param declaringClass * @return the declared constructor for the given index and declaring class * @throws IndexOutOfBoundsException if the index is out of range */ public static <T> Constructor<T> getConstructorForIndex(int index, Class<T> declaringClass) { return cast(getDeclaredConstructors(declaringClass).get(index)); }
/** * @param index * @param declaringClass * @return the declared constructor for the given index and declaring class * @throws IndexOutOfBoundsException if the index is out of range */ public static <T> Constructor<T> getConstructorForIndex(int index, Class<T> declaringClass) { return cast(getDeclaredConstructors(declaringClass).get(index)); }
/** * @param index * @param declaringClass * @return the declared constructor for the given index and declaring class * @throws IndexOutOfBoundsException if the index is out of range */ public static <T> Constructor<T> getConstructorForIndex(int index, Class<T> declaringClass) { return cast(getDeclaredConstructors(declaringClass).get(index)); }
/** * @param index * @param declaringClass * @return the declared constructor for the given index and declaring class * @throws IndexOutOfBoundsException if the index is out of range */ public static <T> Constructor<T> getConstructorForIndex(int index, Class<T> declaringClass) { return cast(getDeclaredConstructors(declaringClass).get(index)); }
/** * @param index * @param declaringClass * @return the declared constructor for the given index and declaring class * @throws IndexOutOfBoundsException if the index is out of range */ public static <T> Constructor<T> getConstructorForIndex(int index, Class<T> declaringClass) { return cast(getDeclaredConstructors(declaringClass).get(index)); }
/** * @param index * @param declaringClass * @return the declared constructor for the given index and declaring class * @throws IndexOutOfBoundsException if the index is out of range */ public static <T> Constructor<T> getConstructorForIndex(int index, Class<T> declaringClass) { return cast(getDeclaredConstructors(declaringClass).get(index)); }
/** * @param constructor * @return the index for the given constructor */ public static int getIndexForConstructor(Constructor<?> constructor) { Preconditions.checkNotNull(constructor); return getIndexForMember(constructor, getDeclaredConstructors(constructor.getDeclaringClass())); }
/** * @param constructor * @return the index for the given constructor */ public static int getIndexForConstructor(Constructor<?> constructor) { Preconditions.checkNotNull(constructor); return getIndexForMember(constructor, getDeclaredConstructors(constructor.getDeclaringClass())); }
/** * @param constructor * @return the index for the given constructor */ public static int getIndexForConstructor(Constructor<?> constructor) { Preconditions.checkNotNull(constructor); return getIndexForMember(constructor, getDeclaredConstructors(constructor.getDeclaringClass())); }
/** * @param constructor * @return the index for the given constructor */ public static int getIndexForConstructor(Constructor<?> constructor) { Preconditions.checkNotNull(constructor); return getIndexForMember(constructor, getDeclaredConstructors(constructor.getDeclaringClass())); }
/** * @param constructor * @return the index for the given constructor */ public static int getIndexForConstructor(Constructor<?> constructor) { Preconditions.checkNotNull(constructor); return getIndexForMember(constructor, getDeclaredConstructors(constructor.getDeclaringClass())); }
/** * @param constructor * @return the index for the given constructor */ public static int getIndexForConstructor(Constructor<?> constructor) { Preconditions.checkNotNull(constructor); return getIndexForMember(constructor, getDeclaredConstructors(constructor.getDeclaringClass())); }