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

com.orgname.cruddata.data.CustomPage Maven / Gradle / Ivy

The newest version!
package com.orgname.cruddata.data;

import java.util.List;

public class CustomPage {

    private List content;
    private int totalPages;
    private long totalElements;
    private int size;
    private int number;

    public CustomPage(List content, int totalPages, long totalElements, int size, int number) {
        this.content = content;
        this.totalPages = totalPages;
        this.totalElements = totalElements;
        this.size = size;
        this.number = number;
    }

    // Getters and setters
    public List getContent() {
        return content;
    }

    public void setContent(List content) {
        this.content = content;
    }

    public int getTotalPages() {
        return totalPages;
    }

    public void setTotalPages(int totalPages) {
        this.totalPages = totalPages;
    }

    public long getTotalElements() {
        return totalElements;
    }

    public void setTotalElements(long totalElements) {
        this.totalElements = totalElements;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy