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

com.web.spring.datatable.DataSet Maven / Gradle / Ivy

The newest version!
package com.web.spring.datatable;

import java.util.List;

/**
 * Wrapping bean that must be sent back to Datatables when server-side
 * processing is enabled.
 *
 * @param  the type parameter
 */
public final class DataSet {

    private final List rows;
    private final Long totalDisplayRecords;
    private final Long totalRecords;

    /**
     * Instantiates a new Data set.
     *
     * @param rows                the rows
     * @param totalRecords        the total records
     * @param totalDisplayRecords the total display records
     */
    public DataSet(List rows, Long totalRecords, Long totalDisplayRecords) {
        this.rows = rows;
        this.totalRecords = totalRecords;
        this.totalDisplayRecords = totalDisplayRecords;
    }

    /**
     * Gets rows.
     *
     * @return the rows
     */
    public List getRows() {
        return rows;
    }

    /**
     * Gets total display records.
     *
     * @return the total display records
     */
    public Long getTotalDisplayRecords() {
        return totalDisplayRecords;
    }

    /**
     * Gets total records.
     *
     * @return the total records
     */
    public Long getTotalRecords() {
        return totalRecords;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy