(String details)
| 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; |