MCPcopy Create free account
hub / github.com/Card-Forge/forge / hasSetLookup

Method hasSetLookup

forge-core/src/main/java/forge/ImageKeys.java:333–341  ·  view source on GitHub ↗
(String filename)

Source from the content-addressed store, hash-verified

331 : CACHE_CARD_PICS_SUBDIR.get(edition); // may use custom paths though
332 }
333 public static boolean hasSetLookup(String filename) {
334 if (filename == null)
335 return false;
336 if (!StaticData.instance().getSetLookup().isEmpty()) {
337 return StaticData.instance().getSetLookup().keySet().stream().anyMatch(filename::startsWith);
338 }
339
340 return false;
341 }
342 public static File setLookUpFile(String filename, String fullborderFile) {
343 if (!StaticData.instance().getSetLookup().isEmpty()) {
344 for (String setKey : StaticData.instance().getSetLookup().keySet()) {

Callers 4

RewardActorMethod · 0.95
auditMethod · 0.95
getImageFileMethod · 0.95
fetchImageMethod · 0.95

Calls 5

instanceMethod · 0.95
getSetLookupMethod · 0.80
isEmptyMethod · 0.65
anyMatchMethod · 0.65
streamMethod · 0.65

Tested by

no test coverage detected