public void setCurrentPage(int currentPage) {
    if (currentPage < 1) {
      this.currentPage = 1;
    } else {
      this.currentPage = currentPage;
    }
  }
Set the current page number
@param currentPage The number to set
app/controllers/PaginationStats.java