/** * Returns the category count result, the returned map * contains Strings (category names) mapped to an Integer (the count).<p> * * @return the category count result */ public Map<String, Integer> getCategoryCountResult() { Map<String, Integer> result = new TreeMap<String, Integer>(); Iterator<Map.Entry<String, CmsCategroyCount>> i = m_categories.entrySet().iterator(); while (i.hasNext()) { Map.Entry<String, CmsCategroyCount> entry = i.next(); result.put(entry.getKey(), entry.getValue().toInteger()); } return result; }
/** * Returns the category count result, the returned map * contains Strings (category names) mapped to an Integer (the count).<p> * * @return the category count result */ public Map<String, Integer> getCategoryCountResult() { Map<String, Integer> result = new TreeMap<String, Integer>(); Iterator<Map.Entry<String, CmsCategroyCount>> i = m_categories.entrySet().iterator(); while (i.hasNext()) { Map.Entry<String, CmsCategroyCount> entry = i.next(); result.put(entry.getKey(), entry.getValue().toInteger()); } return result; }