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
public static class PageRange.PageRangePartAfter extends java.lang.Object implements PageRange.IPageRangePart
Class for range part containing a range of pages for all pages after a given start page.
-
-
Field Summary
Fields Modifier and Type Field Description private intstart
-
Constructor Summary
Constructors Constructor Description PageRangePartAfter(int start)Creates newPageRange.PageRangePartAfterinstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.util.List<java.lang.Integer>getAllPagesInRange(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.
-
-
-
Constructor Detail
-
PageRangePartAfter
public PageRangePartAfter(int start)
Creates newPageRange.PageRangePartAfterinstance.- Parameters:
start- the number of the first page in a range part
-
-
Method Detail
-
getAllPagesInRange
public java.util.List<java.lang.Integer> getAllPagesInRange(int nbPages)
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
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-