nl.vpro.domain.api.FacetResults Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of api-domain Show documentation
Show all versions of api-domain Show documentation
Contains the objects used by the Frontend API, like forms and result objects
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