package pt.utl.ist.fenix.tools.file; import java.util.List; public class FileSearchResult { private List results; private int pageSize; private int start; private int totalElements; public FileSearchResult(List results, int start, int pageSize, Integer totalElements) { this.results =results; this.start = start; this.pageSize = pageSize; this.totalElements = totalElements; } public List getSearchResults() { return results; } public Boolean hasMoreElements() { return (start + pageSize) < totalElements; } public Integer getTotalElements() { return totalElements; } public Integer getPageSize() { return pageSize; } }