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

org.openfact.models.search.SearchResultsModel Maven / Gradle / Ivy

package org.openfact.models.search;

import java.util.ArrayList;
import java.util.List;

/**
 * Models a set of beans returned as a result of a search.
 *
 * @param  the bean type
 */
public class SearchResultsModel {

    private List models = new ArrayList<>();
    private int totalSize;

    /**
     * Constructor.
     */
    public SearchResultsModel() {
    }

    /**
     * @return the beans
     */
    public List getModels() {
        return models;
    }

    /**
     * @param beans the beans to set
     */
    public void setModels(List beans) {
        this.models = beans;
    }

    /**
     * @return the totalSize
     */
    public int getTotalSize() {
        return totalSize;
    }

    /**
     * @param totalSize the totalSize to set
     */
    public void setTotalSize(int totalSize) {
        this.totalSize = totalSize;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy