
org.seedstack.business.pagination.Page Maven / Gradle / Ivy
/*
* Copyright © 2013-2024, The SeedStack authors
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package org.seedstack.business.pagination;
/**
* An indexed page of contiguous items taken from a bigger list.
*
* @param the item type
*/
public interface Page extends Slice {
/**
* Returns the index of the page.
*
* @return the page index.
*/
long getIndex();
/**
* Returns the maximum size of the page.
*
* @return the maximum size of the page.
*/
long getMaxSize();
/**
* Returns the total size of the list this page is derived from.
*
* @return the total size of the bigger list.
*/
long getTotalSize();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy