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

io.github.icodegarden.nutrient.lang.query.NextQuerySupportPage Maven / Gradle / Ivy

There is a newer version: 3.0.2
Show newest version
package io.github.icodegarden.nutrient.lang.query;

/**
 * 
 * @author Fangfang.Xu
 *
 * @param 
 */
public class NextQuerySupportPage extends Page implements NextQuerySupportList {

	private static final long serialVersionUID = 1L;

	private final NextQuerySupportList nextQuerySupportList;

	public NextQuerySupportPage(Page p, NextQuerySupportList nextQuerySupportList) {
		this(p.getPageNum(), p.getPageSize(), p.getTotalCount(), p.isCount(), p.getOrderBy(), nextQuerySupportList);
	}

	public NextQuerySupportPage(int pageNum, int pageSize, long totalCount, boolean count, String orderBy,
			NextQuerySupportList nextQuerySupportList) {
		super(pageNum, pageSize);
//		super.setPages(pages);pages会自动算
		super.setTotalCount(totalCount);
		super.setCount(count);
		super.setOrderBy(orderBy);

		this.nextQuerySupportList = nextQuerySupportList;
		addAll(nextQuerySupportList);
	}

	@Override
	public boolean hasNextPage() {
		return nextQuerySupportList.hasNextPage();
	}

	@Override
	public String getSearchAfter() {
		return nextQuerySupportList.getSearchAfter();
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy