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

de.terrestris.shoguncore.paging.PagingResult Maven / Gradle / Ivy

There is a newer version: 5.3.13
Show newest version
package de.terrestris.shoguncore.paging;

import java.util.List;

import de.terrestris.shoguncore.model.PersistentObject;

/**
 * The Result of a paging request. Contains a list with returned objects and the
 * totalCount of available database entries.
 *
 * @author Nils Bühner
 */
public class PagingResult {

    private List resultList;

    private Number totalCount;

    /**
     * Constructor
     *
     * @param resultList
     * @param number
     */
    public PagingResult(List resultList, Number number) {
        this.setResultList(resultList);
        this.setTotalCount(number);
    }

    /**
     * @return the resultList
     */
    public List getResultList() {
        return resultList;
    }

    /**
     * @param resultList the resultList to set
     */
    public void setResultList(List resultList) {
        this.resultList = resultList;
    }

    /**
     * @return the totalCount
     */
    public Number getTotalCount() {
        return totalCount;
    }

    /**
     * @param totalCount the totalCount to set
     */
    public void setTotalCount(Number totalCount) {
        this.totalCount = totalCount;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy