- Improved isUsefulPumpKeyword.

This commit is contained in:
Sloth
2014-03-24 14:09:47 +00:00
parent 13259c9896
commit c6008dfea4
2 changed files with 36 additions and 6 deletions

View File

@@ -204,6 +204,14 @@ public class CardLists {
return CardLists.filter(cardList, CardPredicates.isType(cardType));
}
public static List<Card> getNotColor(Iterable<Card> cardList, byte color) {
return CardLists.filter(cardList, Predicates.not(CardPredicates.isColor(color)));
}
public static List<Card> getColor(Iterable<Card> cardList, byte color) {
return CardLists.filter(cardList, CardPredicates.isColor(color));
}
/**
* Create a new list of cards by applying a filter to this one.
*