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

org.smart.data.repository.pagination.Page Maven / Gradle / Ivy

There is a newer version: 4.0.14-RELEASE
Show newest version
package org.smart.data.repository.pagination;

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

/**
 * @author Ranzy Blessings (2017/05/10)
 */
public class Page {
    private int pageNumber;
    private int pagesAvailable;
    private List pageItems = new ArrayList();
    private boolean hasNext;
    private boolean hasPrevious;

    public void setPageNumber(int pageNumber) {
        this.pageNumber = pageNumber;
    }

    public void setPagesAvailable(int pagesAvailable) {
        this.pagesAvailable = pagesAvailable;
    }

    public void setPageItems(List pageItems) {
        this.pageItems = pageItems;
    }

    public int getPageNumber() {
        return pageNumber;
    }

    public int getPagesAvailable() {
        return pagesAvailable;
    }

    public List getPageItems() {
        return pageItems;
    }

    public boolean isHasNext() {
        return hasNext;
    }

    public void setHasNext(boolean hasNext) {
        this.hasNext = hasNext;
    }

    public boolean isHasPrevious() {
        return hasPrevious;
    }

    public void setHasPrevious(boolean hasPrevious) {
        this.hasPrevious = hasPrevious;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy