public static class PageRange.PageRangePartAnd extends Object implements PageRange.IPageRangePart
| Constructor and Description |
|---|
PageRangePartAnd(PageRange.IPageRangePart... conditions)
Creates new
PageRange.PageRangePartAnd instance. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
List<Integer> |
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.
|
public PageRangePartAnd(PageRange.IPageRangePart... conditions)
PageRange.PageRangePartAnd instance.conditions - PageRange.IPageRangePart conditions to combine several range parts,
e.g. to configure odd pages between page 19 and 25public List<Integer> getAllPagesInRange(int nbPages)
PageRange.IPageRangePartgetAllPagesInRange in interface PageRange.IPageRangePartnbPages - number of pages of the document to get the pages,
to list only the pages eligible for this documentpublic boolean isPageInRange(int pageNumber)
PageRange.IPageRangePartisPageInRange in interface PageRange.IPageRangePartpageNumber - the page number to checktrue if the page is present in this range, false otherwiseCopyright © 1998–2025 Apryse Group NV. All rights reserved.