47 lines
592 B
Java
47 lines
592 B
Java
package com.imyeyu.java.bean;
|
|
|
|
/**
|
|
* @author 夜雨
|
|
* @since 2025-07-25 11:04
|
|
*/
|
|
public class BasePage {
|
|
|
|
/** 下标 */
|
|
protected int index = 0;
|
|
|
|
/** 数据量 */
|
|
protected long size = 16;
|
|
|
|
public BasePage() {
|
|
}
|
|
|
|
public BasePage(int index, long size) {
|
|
this.index = index;
|
|
this.size = size;
|
|
}
|
|
|
|
public void prev() {
|
|
index--;
|
|
}
|
|
|
|
public void next() {
|
|
index++;
|
|
}
|
|
|
|
public int getIndex() {
|
|
return index;
|
|
}
|
|
|
|
public void setIndex(int index) {
|
|
this.index = index;
|
|
}
|
|
|
|
public long getSize() {
|
|
return size;
|
|
}
|
|
|
|
public void setSize(long size) {
|
|
this.size = size;
|
|
}
|
|
}
|