/** * @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 field * @return the index for the given field */ public static int getIndexForField(Field field) { Preconditions.checkNotNull(field); return getIndexForMember(field, getDeclaredFields(field.getDeclaringClass())); }
/** * @param method * @return the index for the given method */ public static int getIndexForMethod(Method method) { Preconditions.checkNotNull(method); return getIndexForMember(method, getDeclaredMethods(method.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 method * @return the index for the given method */ public static int getIndexForMethod(Method method) { Preconditions.checkNotNull(method); return getIndexForMember(method, getDeclaredMethods(method.getDeclaringClass())); }
/** * @param method * @return the index for the given method */ public static int getIndexForMethod(Method method) { Preconditions.checkNotNull(method); return getIndexForMember(method, getDeclaredMethods(method.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 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 method * @return the index for the given method */ public static int getIndexForMethod(Method method) { Preconditions.checkNotNull(method); return getIndexForMember(method, getDeclaredMethods(method.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 field * @return the index for the given field */ public static int getIndexForField(Field field) { Preconditions.checkNotNull(field); return getIndexForMember(field, getDeclaredFields(field.getDeclaringClass())); }
/** * @param method * @return the index for the given method */ public static int getIndexForMethod(Method method) { Preconditions.checkNotNull(method); return getIndexForMember(method, getDeclaredMethods(method.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 method * @return the index for the given method */ public static int getIndexForMethod(Method method) { Preconditions.checkNotNull(method); return getIndexForMember(method, getDeclaredMethods(method.getDeclaringClass())); }