org.smart.data.repository.pagination.Page Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of smart-data-repository Show documentation
Show all versions of smart-data-repository Show documentation
ORM that simplifies database interactions.
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;
}
}