javaのオブジェクトクラスを変換するための処理です。(自分用メモ)
→Mapクラスへの変換
Object object = item.get("obj");
if (object instanceof Map) {
data = (Map<String, Object>) object;
}
どのクラスでも変換できるので、Stringに変換したい場合はStringに書き換えて使います。
Go to list of users who liked
More than 3 years have passed since last update.
javaのオブジェクトクラスを変換するための処理です。(自分用メモ)
→Mapクラスへの変換
Object object = item.get("obj");
if (object instanceof Map) {
data = (Map<String, Object>) object;
}
どのクラスでも変換できるので、Stringに変換したい場合はStringに書き換えて使います。
Register as a new user and use Qiita more conveniently
Go to list of users who liked