nl.vpro.domain.api.FacetResults Maven / Gradle / Ivy
package nl.vpro.domain.api;
import java.util.*;
/**
* @author Michiel Meeuwissen
* @since 5.12
*/
public class FacetResults {
private FacetResults() {
}
public static Map toSimpleMap(List results) {
Map values = new LinkedHashMap<>();
if (results != null) {
for (TermFacetResultItem b : results) {
values.put(b.getId(), b.getCount());
}
}
return values;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy