List of utility methods to do Reflection Field Value Set
void | setFieldValueX(Object target, String field, Object value) set Field Value X try { Field[] fields = getObjAllFields(target); for (int i = 0; i < fields.length; i++) { fields[i].setAccessible(true); if (field.equals(fields[i].getName())) { fields[i].set(target, value); break; } catch (Exception e) { throw new RuntimeException(e); |