3,7 → 3,11 |
import java.io.Serializable; |
import java.util.ArrayList; |
import java.util.Date; |
import java.util.HashMap; |
import java.util.Map; |
|
import com.google.gwt.user.client.Window; |
|
public class PropositionDetermination implements Serializable { |
|
private static final long serialVersionUID = 840032625524143547L; |
14,7 → 18,7 |
|
private String espece; |
|
private ArrayList<VoteDetermination> votesDeterminations = new ArrayList<VoteDetermination>(); |
private Map<String,VoteDetermination> votesDeterminations = new HashMap<String,VoteDetermination>(); |
|
private String contributeur; |
|
21,7 → 25,7 |
private Date date; |
|
public void ajouterVoteDetermination(VoteDetermination vd) { |
votesDeterminations.add(vd); |
votesDeterminations.put(vd.getContributeur(), vd); |
} |
|
public String getContributeur() { |
68,11 → 72,11 |
this.espece = espece; |
} |
|
public ArrayList<VoteDetermination> getVotesDeterminations() { |
public Map<String, VoteDetermination> getVotesDeterminations() { |
return votesDeterminations; |
} |
|
public void setVotesDeterminations(ArrayList<VoteDetermination> votesDeterminations) { |
public void setVotesDeterminations(Map<String, VoteDetermination> votesDeterminations) { |
this.votesDeterminations = votesDeterminations; |
} |
} |