com.testdroid.api.PagingResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of testdroid-api Show documentation
Show all versions of testdroid-api Show documentation
The Testdroid API library for Java
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;
}
}