info.magnolia.voting.voters
Class OrVoting

java.lang.Object
  extended by info.magnolia.voting.voters.OrVoting
All Implemented Interfaces:
Voting

public class OrVoting
extends Object
implements Voting

Returns the first positive vote. Negative votes are ignored.

Author:
pbracher

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
OrVoting()
           
 
Method Summary
 int vote(Voter[] voters, Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrVoting

public OrVoting()
Method Detail

vote

public int vote(Voter[] voters,
                Object value)
Specified by:
vote in interface Voting


Copyright © 2003-2012 Magnolia International Ltd.. All Rights Reserved.