info.magnolia.voting.voters
Class NotVoter<T>

java.lang.Object
  extended by info.magnolia.voting.voters.BaseVoterImpl<T>
      extended by info.magnolia.voting.voters.AbstractBoolVoter<T>
          extended by info.magnolia.voting.voters.NotVoter<T>
Type Parameters:
T - the type of object passed to vote
All Implemented Interfaces:
Voter<T>

public class NotVoter<T>
extends AbstractBoolVoter<T>

Does invert the boolean outcome of a voter. This is not the same thing as inverting the value (see InverseVoter)


Constructor Summary
NotVoter()
           
 
Method Summary
protected  boolean boolVote(T value)
           
 AbstractBoolVoter<T> getVoter()
           
 void setVoter(AbstractBoolVoter<T> voter)
           
 
Methods inherited from class info.magnolia.voting.voters.AbstractBoolVoter
getFalseValue, getLevel, getTrueValue, isNot, setFalseValue, setLevel, setNot, setTrueValue, toString, vote
 
Methods inherited from class info.magnolia.voting.voters.BaseVoterImpl
getName, isEnabled, setEnabled, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NotVoter

public NotVoter()
Method Detail

boolVote

protected boolean boolVote(T value)
Specified by:
boolVote in class AbstractBoolVoter<T>

getVoter

public AbstractBoolVoter<T> getVoter()

setVoter

public void setVoter(AbstractBoolVoter<T> voter)


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