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

nl.vpro.domain.api.SuggestResult 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
/*
 * Copyright (C) 2014 All rights reserved
 * VPRO The Netherlands
 */
package nl.vpro.domain.api;

import java.util.Collections;
import java.util.List;

import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;

/**
 * @author Roelof Jan Koekoek
 * @since 3.2
 */
@XmlRootElement(name = "suggestResult")
@XmlType(name = "suggestResultType")
public class SuggestResult extends Result {

    public SuggestResult() {
    }

    public static SuggestResult emptyResult() {
        return new SuggestResult(Collections.emptyList(), 0, 0);
    }

    public SuggestResult(List list, Integer max, long listSizes) {
        super(list, null, max, Total.equalsTo(listSizes));
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy