info.magnolia.voting.voters
Class InverseVoter

java.lang.Object
  extended by info.magnolia.voting.voters.BaseVoterImpl
      extended by info.magnolia.voting.voters.InverseVoter
All Implemented Interfaces:
Voter

public class InverseVoter
extends BaseVoterImpl

Inverses the returned value of the wrapped voter. ( 5 --> -5)

Author:
pbracher

Constructor Summary
InverseVoter()
           
 
Method Summary
 Voter getVoter()
           
 void setVoter(Voter vote)
           
 int vote(Object value)
           
 
Methods inherited from class info.magnolia.voting.voters.BaseVoterImpl
getName, isEnabled, setEnabled, setName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InverseVoter

public InverseVoter()
Method Detail

vote

public int vote(Object value)

getVoter

public Voter getVoter()

setVoter

public void setVoter(Voter vote)


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