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

com.github.wz2cool.dynamic.model.LogicPagingResult Maven / Gradle / Ivy

There is a newer version: 3.2.32
Show newest version
package com.github.wz2cool.dynamic.model;

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

/**
 * @author Frank
 **/
public class LogicPagingResult {
    private boolean hasPreviousPage;
    private boolean hasNextPage;
    private int pageSize;
    private long startPageId;
    private long endPageId;
    private List list = new ArrayList<>();

    public boolean isHasPreviousPage() {
        return hasPreviousPage;
    }

    public void setHasPreviousPage(boolean hasPreviousPage) {
        this.hasPreviousPage = hasPreviousPage;
    }

    public boolean isHasNextPage() {
        return hasNextPage;
    }

    public void setHasNextPage(boolean hasNextPage) {
        this.hasNextPage = hasNextPage;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public long getStartPageId() {
        return startPageId;
    }

    public void setStartPageId(long startPageId) {
        this.startPageId = startPageId;
    }

    public long getEndPageId() {
        return endPageId;
    }

    public void setEndPageId(long endPageId) {
        this.endPageId = endPageId;
    }

    public List getList() {
        return list == null ? new ArrayList<>() : new ArrayList<>(list);
    }

    public void setList(List list) {
        this.list = list == null ? new ArrayList<>() : new ArrayList<>(list);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy