nl.vpro.domain.api.SuggestResult 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
/*
* 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