@EndGreaterThenOrEqualToStart public class PageRange extends Object implements PagesSelection
Constructor and Description |
---|
PageRange(int start)
Creates a page range that starts at the given page and ends when the document ends.
|
PageRange(int start,
int end)
Creates a page range that goes from start to end (comprehended).
|
Modifier and Type | Method and Description |
---|---|
boolean |
contains(int page) |
boolean |
equals(Object other) |
int |
getEnd() |
SortedSet<Integer> |
getPages(int totalNumberOfPage) |
int |
getStart() |
int |
hashCode() |
boolean |
intersects(PageRange range) |
boolean |
isUnbounded() |
static PageRange |
one(int page) |
String |
toString() |
public PageRange(int start, int end)
start
- end
- public PageRange(int start)
start
- public int getStart()
public int getEnd()
public boolean isUnbounded()
public boolean intersects(PageRange range)
range
- true
if the input range intersect this PageRange
instance.public SortedSet<Integer> getPages(int totalNumberOfPage)
getPages
in interface PagesSelection
totalNumberOfPage
- the number of pages of the document (upper limit).PagesSelection.getPages(int)
public boolean contains(int page)
public static PageRange one(int page)
Copyright © 2021 sejda. All rights reserved.