|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.voting.DefaultVoting
public class DefaultVoting
The highest returned vote is taken (8 or -10, ..) and returned. The voting can return 0 if no voter has anything to say.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface info.magnolia.voting.Voting |
---|
Voting.Factory |
Field Summary |
---|
Fields inherited from interface info.magnolia.voting.Voting |
---|
AND, HIGHEST_LEVEL, OR |
Constructor Summary | |
---|---|
DefaultVoting()
|
Method Summary | |
---|---|
int |
vote(Voter[] voters,
java.lang.Object value)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultVoting()
Method Detail |
---|
public int vote(Voter[] voters, java.lang.Object value)
vote
in interface Voting
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |