public class GroupOfVoterBuilder extends Object implements VoterBuilder
GroupOfVoter builder.| Constructor and Description |
|---|
GroupOfVoterBuilder() |
| Modifier and Type | Method and Description |
|---|---|
GroupOfVoterBuilder |
addVoteForChoice(String choiceId,
Double voteValue) |
void |
flush() |
void |
flushVoter() |
GroupOfVoter |
getRoot() |
Set<Voter> |
getVoters() |
GroupOfVoterBuilder |
newGroupVoter(String voterId,
double weight) |
GroupOfVoterBuilder |
newVoter(String voterId,
double weight) |
public Set<Voter> getVoters()
getVoters in interface VoterBuilderpublic GroupOfVoterBuilder newVoter(String voterId, double weight)
newVoter in interface VoterBuilderpublic GroupOfVoterBuilder addVoteForChoice(String choiceId, Double voteValue)
addVoteForChoice in interface VoterBuilderpublic GroupOfVoterBuilder newGroupVoter(String voterId, double weight)
public void flushVoter()
public void flush()
flush in interface VoterBuilderpublic GroupOfVoter getRoot()
Copyright © 2009–2013 CodeLutin. All rights reserved.