);//getDeclaredFields()返回Class中所有的字段,包括私有字段;
for(Field fld:flds){
//获取该fld对象所代表的属性名...B001", "红楼梦", 25.00, 53.23, 500));
lists.add(new User("U001", "李四", 25));
lists.add("嵌套使用...Book [uuid=B001, name=红楼梦, inPrice=25.0, outPrice=53.23, num=500], User [uuid=U001, name=李四, age=25], 嵌套使用...], map={string=map中的字符串, user=User [uuid=MU002, name=MapUser, age=30]}]
其实和普通的使用没有什么不同的。...无非是外面再嵌套一层罢了~
完整源码链接:
–>点击访问本系列源码–
----
转载请注明出处:http://blog.csdn.net/qq_26525215