Package com.itextpdf.kernel.utils
Class PageRange.PageRangePartOddEven
java.lang.Object
com.itextpdf.kernel.utils.PageRange.PageRangePartOddEven
- All Implemented Interfaces:
-
PageRange.IPageRangePart
- Enclosing class:
- PageRange
public static class PageRange.PageRangePartOddEven extends Object implements PageRange.IPageRangePart
Class for range part for all even or odd pages. The class contains only 2 instances, one for odd pages and one for even pages.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PageRange.PageRangePartOddEvenstatic final PageRange.PageRangePartOddEven -
Method Summary
Modifier and TypeMethodDescriptionbooleangetAllPagesInRange(int nbPages) Gets the list of pages that have been added to the range part so far.inthashCode()booleanisPageInRange(int pageNumber) Checks if a given page is present in the range part built so far.
-
Field Details
-
ODD
-
EVEN
-
-
Method Details
-
getAllPagesInRange
Description copied from interface:PageRange.IPageRangePartGets the list of pages that have been added to the range part so far.- Specified by:
-
getAllPagesInRangein 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.IPageRangePartChecks if a given page is present in the range part built so far.- Specified by:
-
isPageInRangein interfacePageRange.IPageRangePart - Parameters:
-
pageNumber- the page number to check - Returns:
-
trueif the page is present in this range,falseotherwise
-
equals
-
hashCode
public int hashCode()
-