All Downloads are FREE. Search and download functionalities are using the official Maven repository.

nl.vpro.domain.api.FacetResults Maven / Gradle / Ivy

Go to download

Contains the objects used by the Frontend API, like forms and result objects

There is a newer version: 8.3.3
Show newest version
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