Package lu.kbra.pclib.db.loader
Class PagedEnumeration<B>
java.lang.Object
lu.kbra.pclib.db.loader.PagedEnumeration<B>
- All Implemented Interfaces:
Enumeration<B>
- Direct Known Subclasses:
BufferedPagedEnumeration
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected final intprotected final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfetchPage(int page, int size) voidforEachRemaining(Consumer<B> consumer) boolean
-
Field Details
-
pageSize
protected final int pageSize -
total
protected final int total -
currentPage
protected int currentPage -
currentPageData
-
-
Constructor Details
-
PagedEnumeration
public PagedEnumeration(int pageSize, int total)
-
-
Method Details
-
asIterator
- Specified by:
asIteratorin interfaceEnumeration<B>
-
forEachRemaining
-
hasMoreElements
public boolean hasMoreElements()- Specified by:
hasMoreElementsin interfaceEnumeration<B>
-
nextElement
- Specified by:
nextElementin interfaceEnumeration<B>
-
fetchPage
-