You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

32 lines
541 B

package model;
import java.util.HashMap;
import java.util.Map;
public class Paper {
private Map data;
private String type;
public Paper(String type) {
this.type = type;
this.data = new HashMap();
}
public void setData(String key, String value) {
data.put(key, value);
}
public String getData(String key) {
return (String) data.get(key);
}
public Map getAllData() {
return new HashMap(data);
}
public String getType() {
return type;
}
}