com.taskadapter.redmineapi.internal.ResultsWrapper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of redmine-java-api Show documentation
Show all versions of redmine-java-api Show documentation
Free open-source Java API for Redmine and Chiliproject bug/task management systems.
This project was originally a part of Task Adapter application (http://www.taskadapter.com)
and then was open-sourced.
The newest version!
package com.taskadapter.redmineapi.internal;
import java.util.List;
public final class ResultsWrapper {
private final Integer totalFoundOnServer;
private final Integer limitOnServer;
private final Integer offsetOnServer;
private final List results;
public ResultsWrapper(Integer totalFoundOnServer, Integer limitOnServer, Integer offsetOnServer, List results) {
this.totalFoundOnServer = totalFoundOnServer;
this.limitOnServer = limitOnServer;
this.offsetOnServer = offsetOnServer;
this.results = results;
}
public boolean hasSomeResults() {
return results != null && !results.isEmpty();
}
public List getResults() {
return results;
}
public int getResultsNumber() {
return results != null ? results.size() : 0;
}
public Integer getTotalFoundOnServer() {
return totalFoundOnServer;
}
public Integer getLimitOnServer() {
return limitOnServer;
}
public Integer getOffsetOnServer() {
return offsetOnServer;
}
}