public static Object parseDate(Object object){ SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); Class clazz = object.getClass(); Field[] fields = clazz.getDeclaredFields(); for (int i=0;i<fields.length;i++){ Field field = fields[i];…
public class AppTest { private NodeClass nodeClass; public static String hehe = "hehe"; public String xixi = "xixi"; public void test() { Field[] fields = AppTest.class.getDeclaredFields(); try { for (Field field : fields) { field.setA…