diff --git a/src/main/java/com/ntlab/irisserver/entities/Turn.java b/src/main/java/com/ntlab/irisserver/entities/Turn.java index aad634e..b6bae7b 100644 --- a/src/main/java/com/ntlab/irisserver/entities/Turn.java +++ b/src/main/java/com/ntlab/irisserver/entities/Turn.java @@ -17,7 +17,7 @@ @JsonProperty("max") private int max; - private List> questions = new ArrayList<>(); //> + private List questions[] = new ArrayList[16]; //> private List openlist = new ArrayList<>(); @@ -45,17 +45,17 @@ public List getOpenListAll() {return openlist;} //リストそのものを返す。 - public List> getQuestionsList() {return questions;} + public List[] getQuestionsList() {return questions;} //--------------------------------------------------------- //questions操作 - public List getQuestions(int cno){return questions.get(cno);} + public List getQuestions(int cno){return questions[cno];} - public void addQuestions(int cno, Member m){questions.get(cno).add(m);} + public void addQuestions(int cno, Member m){questions[cno].add(m);} public void delieteQuestions(int cno, Member m){ - List list = questions.get(cno); + List list = questions[cno]; for(Iterator it = list.iterator(); it.hasNext();){ Member member = (Member) it.next(); if(member.getNickname() == m.getNickname()){ @@ -66,7 +66,7 @@ } - public int sizeQuestions(){return questions.size();} + public int sizeQuestions(int cno){return questions[cno].size();} //openlist操作