Class PageIterator<T>

java.lang.Object
com.e1c.langtool.history.db.pagination.PageIterator<T>
All Implemented Interfaces:
Iterator<IPage<T>>

public class PageIterator<T> extends Object implements Iterator<IPage<T>>
An iterator of pages.
  • Constructor Details

    • PageIterator

      public PageIterator(IPageLoader<T> pageLoader, IPageable pageable, long totalSize)
      Creates a new page iterator.
      Parameters:
      pageLoader - the loader to load a new pages while iterating
      pageable - the pageable object that defines the start position and the step of iterating
      totalSize - the total amount of elements
  • Method Details