public class SimpleVoterBuilder extends Object implements VoterBuilder
SimpleVoter builder.| Constructor and Description |
|---|
SimpleVoterBuilder() |
| Modifier and Type | Method and Description |
|---|---|
SimpleVoterBuilder |
addVoteForChoice(String choiceId,
Double voteValue) |
void |
flush() |
Set<Voter> |
getVoters() |
SimpleVoterBuilder |
newVoter(String voterId,
double weight) |
public SimpleVoterBuilder newVoter(String voterId, double weight)
newVoter in interface VoterBuilderpublic SimpleVoterBuilder addVoteForChoice(String choiceId, Double voteValue)
addVoteForChoice in interface VoterBuilderpublic Set<Voter> getVoters()
getVoters in interface VoterBuilderpublic void flush()
flush in interface VoterBuilderCopyright © 2009-2013 CodeLutin. All Rights Reserved.