Package com.itextpdf.kernel.utils
Class PageRange.PageRangePartAfter
java.lang.Object
com.itextpdf.kernel.utils.PageRange.PageRangePartAfter
- All Implemented Interfaces:
-
PageRange.IPageRangePart
- Enclosing class:
- PageRange
Class for range part containing a range of pages for all pages after a given start page.
-
Constructor Summary
ConstructorDescriptionPageRangePartAfter
(int start) Creates newPageRange.PageRangePartAfter
instance. -
Method Summary
Modifier and TypeMethodDescriptionboolean
getAllPagesInRange
(int nbPages) Gets the list of pages that have been added to the range part so far.int
hashCode()
boolean
isPageInRange
(int pageNumber) Checks if a given page is present in the range part built so far.
-
Constructor Details
-
PageRangePartAfter
public PageRangePartAfter(int start) Creates newPageRange.PageRangePartAfter
instance.- Parameters:
-
start
- the number of the first page in a range part
-
-
Method Details
-
getAllPagesInRange
Description copied from interface:PageRange.IPageRangePart
Gets the list of pages that have been added to the range part so far.- Specified by:
-
getAllPagesInRange
in interfacePageRange.IPageRangePart
- Parameters:
-
nbPages
- number of pages of the document to get the pages, to list only the pages eligible for this document - Returns:
- the list containing page numbers added to the range part matching this document
-
isPageInRange
public boolean isPageInRange(int pageNumber) Description copied from interface:PageRange.IPageRangePart
Checks if a given page is present in the range part built so far.- Specified by:
-
isPageInRange
in interfacePageRange.IPageRangePart
- Parameters:
-
pageNumber
- the page number to check - Returns:
-
true
if the page is present in this range,false
otherwise
-
equals
-
hashCode
public int hashCode()
-