(Collection<String> setCodes)
| 1138 | } |
| 1139 | |
| 1140 | @Override |
| 1141 | public Predicate<? super PaperCard> wasPrintedInSets(Collection<String> setCodes) { |
| 1142 | Set<String> sets = new HashSet<>(setCodes); |
| 1143 | return paperCard -> getAllCards(paperCard).stream() |
| 1144 | .map(PaperCard::getEdition).anyMatch(editionCode -> |
| 1145 | sets.contains(editionCode) && |
| 1146 | StaticData.instance().getCardEdition(editionCode).isCardObtainable(paperCard.getName()) |
| 1147 | ); |
| 1148 | } |
| 1149 | |
| 1150 | // This Predicate validates if a card is legal in a given format (identified by the list of allowed sets) |
| 1151 | @Override |
nothing calls this directly
no test coverage detected