/** * Returns the Method object that is the adder for the field name * * @param c the Class * @param fieldName the name of the relevant collection * @return the adder, or null if it is not present or if the field is not found */ public static Method getAdder(Class<?> c, String fieldName) { FieldInfo info = getFieldInfo(c, fieldName); if (info != null) { return info.getAdder(); } return null; }
/** * Returns the Method object that is the adder for the field name * * @param c the Class * @param fieldName the name of the relevant collection * @return the adder, or null if it is not present or if the field is not found */ public static Method getAdder(Class<?> c, String fieldName) { FieldInfo info = getFieldInfo(c, fieldName); if (info != null) { return info.getAdder(); } return null; }