リンクされたハッシュマップである変数があります。そのような:
"message": "something"
"code": "0"
そして私はpojoを持っています:
String message;
Integer code;
//getters and setters
linkedhasmap を pojo に変換するライブラリはありますか?
リンクされたハッシュマップである変数があります。そのような:
"message": "something"
"code": "0"
そして私はpojoを持っています:
String message;
Integer code;
//getters and setters
linkedhasmap を pojo に変換するライブラリはありますか?
Apache Commons BeanUtilsには、マップ値を Bean に移動するpopulate()
メソッドがあります。
map を反復して POJO オブジェクトのリストを作成するだけです。