package adapter; public class User { private int id; private Map<String, Object> userData; public User(int id) { super(); this.id = id; this.userData = new HashMap<String, Object>(); } userData.put(name, value); } return userData.get(name); } }