71,10 → 71,10 |
return propositionDetermination; |
} |
|
public static Map<String, List<VoteProtocole>> parserVotesProtocoles(JSONArray votes) { |
public static HashMap<String, HashMap<String,VoteProtocole>> parserVotesProtocoles(JSONArray votes) { |
|
int nbVotes = votes.size(); |
Map<String, List<VoteProtocole>> votesProtocoles = new HashMap<String, List<VoteProtocole>>(); |
HashMap<String, HashMap<String,VoteProtocole>> votesProtocoles = new HashMap<String, HashMap<String,VoteProtocole>>(); |
for (int j = 0; j < nbVotes; j++) { |
JSONObject vote = votes.get(j).isObject(); |
VoteProtocole vd = new VoteProtocole(); |
86,9 → 86,9 |
vd.setVote(valeurVote); |
|
if(!votesProtocoles.containsKey(idProtocoleVote)) { |
votesProtocoles.put(idProtocoleVote, new ArrayList<VoteProtocole>()); |
votesProtocoles.put(idProtocoleVote, new HashMap<String,VoteProtocole>()); |
} |
votesProtocoles.get(idProtocoleVote).add(vd); |
votesProtocoles.get(idProtocoleVote).put(vd.getContributeur(), vd); |
} |
|
return votesProtocoles; |