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

Method parse

forge-game/src/main/java/forge/game/keyword/Ward.java:14–26  ·  view source on GitHub ↗
(String details)

Source from the content-addressed store, hash-verified

12 protected Map<String, Cost> costs;
13
14 @Override
15 protected void parse(String details) {
16 String[] allDetails = details.split(":");
17
18 if (allDetails.length > 1) {
19 costs = Maps.newLinkedHashMapWithExpectedSize(allDetails.length);
20 for (String costStr : allDetails) {
21 costs.put(costStr, new Cost(costStr, true));
22 }
23 } else {
24 super.parse(details);
25 }
26 }
27
28 public Map<String, Cost> getCosts() {
29 return costs;

Callers 1

parseDateMethod · 0.45

Calls 2

splitMethod · 0.80
putMethod · 0.45

Tested by

no test coverage detected