Revert "-CardPool"

This reverts commit 37d9dc753f
This commit is contained in:
imakunee
2018-11-03 00:36:26 +00:00
committed by Jeremy Pelkala
parent 6857eadd11
commit 03cd56d2a9
19 changed files with 33 additions and 558 deletions

View File

@@ -17,7 +17,6 @@
*/
package forge.deck;
import com.google.common.base.Predicate;
import com.google.common.collect.Lists;
import forge.StaticData;
import forge.card.CardDb;
@@ -217,17 +216,4 @@ public class CardPool extends ItemPool<PaperCard> {
}
return sb.toString();
}
/**
* Applies a predicate to this CardPool's cards.
* @param predicate the Predicate to apply to this CardPool
* @return a new CardPool made from this CardPool with only the cards that agree with the provided Predicate
*/
public CardPool getFilteredPool(Predicate<PaperCard> predicate){
CardPool filteredPool = new CardPool();
for(PaperCard pc : this.items.keySet()){
if(predicate.apply(pc)) filteredPool.add(pc);
}
return filteredPool;
}
}