PageRanges
| Modifier and Type | Field and Description |
|---|---|
| private final List |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | add(PageRange pageRange)
Overrides java. Implements java. Appends the specified element to the end of this list (optional operation). |
| public PageRange | get(int index)
Implements abstract java. Implements java. Returns the element at the specified position in this list. |
| public String | |
| public Integer | Returns: the sum of the number of pages of all page ranges in this list ornull if the page ranges were unparsable and the sum could
not be determined
|
| public String | |
| public boolean | |
| public PageRange | remove(int index)
Overrides java. Implements java. Removes the element at the specified position in this list (optional operation). |
| public PageRange | set(int index, PageRange element)
Overrides java. Implements java. Replaces the element at the specified position in this list with the specified element (optional operation). |
| public int | size()
Implements abstract java. Implements java. Returns the number of elements in this list. |
| list | back to summary |
|---|---|
| private final List<PageRange> list | |
| PageRanges | back to summary |
|---|---|
| public PageRanges() Construct an empty list of page ranges | |
| PageRanges | back to summary |
|---|---|
| public PageRanges(PageRange singleRange) Construct a list containing a single page range
| |
| add | back to summary |
|---|---|
| public boolean add(PageRange pageRange) Overrides java. Implements java. Doc from java. Appends the specified element to the end of this list (optional operation). Lists that support this operation may place limitations on what elements may be added to this list. In particular, some lists will refuse to add null elements, and others will impose restrictions on the type of elements that may be added. List classes should clearly specify in their documentation any restrictions on what elements may be added.
| |
| get | back to summary |
|---|---|
| public PageRange get(int index) Implements abstract java. Implements java. Doc from java. Returns the element at the specified position in this list.
| |
| getLiteral | back to summary |
|---|---|
public String getLiteral()
| |
| getNumberOfPages | back to summary |
|---|---|
public Integer getNumberOfPages()
| |
| getPageFirst | back to summary |
|---|---|
public String getPageFirst()
| |
| isMultiplePages | back to summary |
|---|---|
public boolean isMultiplePages()
| |
| remove | back to summary |
|---|---|
| public PageRange remove(int index) Overrides java. Implements java. Doc from java. Removes the element at the specified position in this list (optional operation). Shifts any subsequent elements to the left (subtracts one from their indices). Returns the element that was removed from the list.
| |
| set | back to summary |
|---|---|
| public PageRange set(int index, PageRange element) Overrides java. Implements java. Doc from java. Replaces the element at the specified position in this list with the specified element (optional operation).
| |
| size | back to summary |
|---|---|
| public int size() Implements abstract java. Implements java. Doc from java. Returns the number of elements in this list. If this list contains
more than
| |