info.magnolia.voting
Class DefaultVoting

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

public class DefaultVoting
extends java.lang.Object
implements Voting

The highest returned vote is taken (8 or -10, ..) and returned. The voting can return 0 if no voter has anything to say.

Version:
$Id: DefaultVoting.java 41137 2011-01-06 18:19:25Z gjoseph $
Author:
philipp

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

DefaultVoting

public DefaultVoting()
Method Detail

vote

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


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