info.magnolia.voting
Interface Voting<T>

Type Parameters:
T - the type of object passed to voters
All Known Implementing Classes:
AndVoting, DefaultVoting, OrVoting

public interface Voting<T>

Contract for decision maker (i.e. class executing set of voters and providing combined output).


Nested Class Summary
static class Voting.Factory
          Deprecated. since 4.4, use one of the constants AND, OR, HIGHEST_LEVEL
 
Field Summary
static Voting AND
           
static Voting HIGHEST_LEVEL
           
static Voting OR
           
 
Method Summary
 int vote(Voter<T>[] voters, T value)
           
 

Field Detail

AND

static final Voting AND

OR

static final Voting OR

HIGHEST_LEVEL

static final Voting HIGHEST_LEVEL
Method Detail

vote

int vote(Voter<T>[] voters,
         T value)


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