ontology/solr-facet-tree/src/main/java/uk/co/flax/biosolr/FacetTreeGenerator.java
/**
	 * Convert a list of facets into a map, keyed by the facet term. 
	 * @param facetValues the facet values.
	 * @return a map of term - value for each entry.
	 */
Convert a list of facets into a map, keyed by the facet term.
@param facetValues the facet values.
@return a map of term - value for each entry.
Convert a list of facets into a map keyed by the facet term . @param facetValues the facet values . @return a map of term - value for each entry .
private Map<String, Integer> extractFacetValues(NamedList<Integer> facetValues) {
		Map<String, Integer> facetMap = new LinkedHashMap<>();
		for (Entry<String, Integer> entry : facetValues) {
			if (entry.getValue() > 0) {
				facetMap.put(entry.getKey(), entry.getValue());
			}
		}
		return facetMap;
	}
private Map < String , Integer > extractFacetValues ( NamedList < Integer > facetValues ) { Map < String , Integer > facetMap = new LinkedHashMap < > ( ) ; for ( Entry < String , Integer > entry : facetValues ) { if ( entry . getValue ( ) > 0 ) { facetMap . put ( entry . getKey ( ) , entry . getValue ( ) ) ; } } return facetMap ; }
Convert a list of facets into a map, keyed by the facet term.
Convert a list of facets into a map keyed by the facet term .