info.magnolia.voting.voters
Class OrVoting<T>
java.lang.Object
info.magnolia.voting.voters.OrVoting<T>
- Type Parameters:
T
- the type of object passed to vote
- All Implemented Interfaces:
- Voting<T>
public class OrVoting<T>
- extends Object
- implements Voting<T>
Returns the first positive vote. Negative votes are ignored.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OrVoting
public OrVoting()
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.