info.magnolia.voting
Class DefaultVoting<T>
java.lang.Object
info.magnolia.voting.DefaultVoting<T>
- Type Parameters:
T
- the type of object passed to vote
- All Implemented Interfaces:
- Voting<T>
public class DefaultVoting<T>
- extends Object
- implements Voting<T>
The highest returned vote is taken (8 or -10, ..) and returned. The voting
can return 0 if no voter has anything to say.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultVoting
public DefaultVoting()
vote
public int vote(Voter<T>[] voters,
T value)
- Specified by:
vote
in interface Voting<T>
Copyright © 2003-2014 Magnolia International Ltd.. All Rights Reserved.