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

develop.toolkit.struct.Pager Maven / Gradle / Ivy

There is a newer version: 1.0.6
Show newest version
package develop.toolkit.struct;

import lombok.Getter;

/**
 * 分页请求参数信息
 *
 * @author qiushui on 2018-06-07.
 * @since 0.1
 */
public abstract class Pager {

	public static final int DEFAULT_PAGE = 1;
	public static final int DEFAULT_SIZE = 10;

	/* 页码 */
	@Getter
	protected int page;
	/* 页容量 */
	@Getter
	protected int size;

	public Pager() {
		this(DEFAULT_PAGE, DEFAULT_SIZE);
	}

	public Pager(int page, int size) {
		this.page = page;
		this.size = size;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy