info.magnolia.voting.voters
Class AndVoting

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

public class AndVoting
extends Object
implements Voting

Return the maximum vote but only if all voters voted positive.

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
AndVoting()
           
 
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

AndVoting

public AndVoting()
Method Detail

vote

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


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