Model
private HashMap<String, Object> data;
public Mode() {
this.data = new HashMap<String, Object>();
}
public Object get(Mode value) {
return this.data.get(value);
}
public void set(String key, Object value) {
this.data.put(key, value);
}
}
How do I set and get the value using this model?