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

com.testdroid.api.PagingResult Maven / Gradle / Ivy

There is a newer version: 3.34.0
Show newest version
package com.testdroid.api;

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

/**
 * @param  type of internal list elements
 * @author Damian Sniezek 
 */
public class PagingResult {

    public static  PagingResult empty() {
        return new PagingResult<>(Collections.emptyList(), 0L);
    }

    private List result;

    private Long totalCount;

    public PagingResult() {
    }

    public PagingResult(List result, Long totalCount) {
        this.result = result;
        this.totalCount = totalCount;
    }

    public List getResult() {
        return result;
    }

    public void setResult(List result) {
        this.result = result;
    }

    public Long getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(Long totalCount) {
        this.totalCount = totalCount;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy