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

Method hitCache

forge-core/src/main/java/forge/ImageKeys.java:468–473  ·  view source on GitHub ↗
(HashSet<String> cache, String filename)

Source from the content-addressed store, hash-verified

466 }
467
468 private static boolean hitCache(HashSet<String> cache, String filename) {
469 if (cache == null || cache.isEmpty())
470 return false;
471 final String keyPrefix = filename.split("\\.")[0];
472 return cache.contains(keyPrefix);
473 }
474}

Callers 1

hasImageMethod · 0.95

Calls 3

splitMethod · 0.80
isEmptyMethod · 0.65
containsMethod · 0.65

Tested by

no test coverage detected