问题描述
public class QuestionWrapper {
private Set<Qbank> tfQuestionSetMain = new HashSet<>();
private Set<Qbank> fibQuestionSetMain = new HashSet<>();
private Set<Qbank> etfQuestionSetMain = new HashSet<>();
private Set<Qbank> mtfQuestionSetMain = new HashSet<>();
private Set<Qbank> mcQuestionSetMain = new HashSet<>();
private Set<Qbank> saQuestionSetMain = new HashSet<>();
private Set<Qbank> laQuestionSetMain = new HashSet<>();
private Set<Qbank> tfQuestionSetRe = new HashSet<>();
private Set<Qbank> fibQuestionSetRe = new HashSet<>();
private Set<Qbank> etfQuestionSetRe = new HashSet<>();
private Set<Qbank> mtfQuestionSetRe = new HashSet<>();
private Set<Qbank> mcQuestionSetRe = new HashSet<>();
private Set<Qbank> saQuestionSetRe = new HashSet<>();
private Set<Qbank> laQuestionSetRe = new HashSet<>();
private QpData qpData;
// getters & setters
}
我显然可以将每个Qbank对象存储在数据库中,然后构造QuestionWrapper,最后构造一个hashmap。但是我想要一种更简单,更省力的方式来存储整个哈希图,并在需要时进行检索。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)