/** * @param index * @param declaringClass * @return the declared field for the given index and declaring class * @throws IndexOutOfBoundsException if the index is out of range */ public static Field getFieldForIndex(int index, Class<?> declaringClass) { return getDeclaredFields(declaringClass).get(index); }
/** * @param index * @param declaringClass * @return the declared field for the given index and declaring class * @throws IndexOutOfBoundsException if the index is out of range */ public static Field getFieldForIndex(int index, Class<?> declaringClass) { return getDeclaredFields(declaringClass).get(index); }
/** * @param index * @param declaringClass * @return the declared field for the given index and declaring class * @throws IndexOutOfBoundsException if the index is out of range */ public static Field getFieldForIndex(int index, Class<?> declaringClass) { return getDeclaredFields(declaringClass).get(index); }
/** * @param index * @param declaringClass * @return the declared field for the given index and declaring class * @throws IndexOutOfBoundsException if the index is out of range */ public static Field getFieldForIndex(int index, Class<?> declaringClass) { return getDeclaredFields(declaringClass).get(index); }
/** * @param index * @param declaringClass * @return the declared field for the given index and declaring class * @throws IndexOutOfBoundsException if the index is out of range */ public static Field getFieldForIndex(int index, Class<?> declaringClass) { return getDeclaredFields(declaringClass).get(index); }
/** * @param index * @param declaringClass * @return the declared field for the given index and declaring class * @throws IndexOutOfBoundsException if the index is out of range */ public static Field getFieldForIndex(int index, Class<?> declaringClass) { return getDeclaredFields(declaringClass).get(index); }
/** * @param field * @return the index for the given field */ public static int getIndexForField(Field field) { Preconditions.checkNotNull(field); return getIndexForMember(field, getDeclaredFields(field.getDeclaringClass())); }
/** * @param field * @return the index for the given field */ public static int getIndexForField(Field field) { Preconditions.checkNotNull(field); return getIndexForMember(field, getDeclaredFields(field.getDeclaringClass())); }
/** * @param field * @return the index for the given field */ public static int getIndexForField(Field field) { Preconditions.checkNotNull(field); return getIndexForMember(field, getDeclaredFields(field.getDeclaringClass())); }
/** * @param field * @return the index for the given field */ public static int getIndexForField(Field field) { Preconditions.checkNotNull(field); return getIndexForMember(field, getDeclaredFields(field.getDeclaringClass())); }
/** * @param field * @return the index for the given field */ public static int getIndexForField(Field field) { Preconditions.checkNotNull(field); return getIndexForMember(field, getDeclaredFields(field.getDeclaringClass())); }
/** * @param field * @return the index for the given field */ public static int getIndexForField(Field field) { Preconditions.checkNotNull(field); return getIndexForMember(field, getDeclaredFields(field.getDeclaringClass())); }