games.strategy.util
Class InverseMatch<T>

java.lang.Object
  extended by games.strategy.util.Match<T>
      extended by games.strategy.util.InverseMatch<T>

public class InverseMatch<T>
extends Match<T>

A match that returns the negation of the given match.

Version:
1.0
Author:
Sean Bridges

Field Summary
 
Fields inherited from class games.strategy.util.Match
ALWAYS_MATCH, NEVER_MATCH
 
Constructor Summary
InverseMatch(Match<T> aMatch)
          Creates new CompositeMatchOr
 
Method Summary
 boolean match(T o)
          Subclasses must override this method.
 
Methods inherited from class games.strategy.util.Match
allMatch, countMatches, getKeysWhereValueMatch, getMatches, getNMatches, invert, noneMatch, someMatch
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InverseMatch

public InverseMatch(Match<T> aMatch)
Creates new CompositeMatchOr

Method Detail

match

public boolean match(T o)
Description copied from class: Match
Subclasses must override this method. Returns true if the object matches some condition.

Specified by:
match in class Match<T>