List<String> getAllOwnedSkus(String itemType) { List<String> result = new ArrayList<String>(); for (Purchase p : purchaseMap.values()) { if (p.getItemType().equals(itemType)) result.add(p.getSku()); } return result; }