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

com.taskadapter.redmineapi.internal.ResultsWrapper Maven / Gradle / Ivy

Go to download

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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy