|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgames.strategy.util.Match<T>
games.strategy.util.CompositeMatch<T>
public abstract class CompositeMatch<T>
Base class for composite matches.
Can add a match, or an inverse match.
Subclasses must override match, and can call getMatches() to get a list of
matches added.
| Field Summary |
|---|
| Fields inherited from class games.strategy.util.Match |
|---|
ALWAYS_MATCH, NEVER_MATCH |
| Constructor Summary | |
|---|---|
CompositeMatch()
Creates new CompositeMatch |
|
| Method Summary | |
|---|---|
void |
add(Match<T> match)
Add a match. |
void |
addInverse(Match<T> aMatch)
Add the inverse of a match. |
protected java.util.List<Match<T>> |
getMatches()
Returns the matches, does not return a copy so be careful about modifying. |
| Methods inherited from class games.strategy.util.Match |
|---|
allMatch, countMatches, getKeysWhereValueMatch, getMatches, getNMatches, invert, match, noneMatch, someMatch |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CompositeMatch()
| Method Detail |
|---|
public void add(Match<T> match)
public void addInverse(Match<T> aMatch)
protected java.util.List<Match<T>> getMatches()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||