Class PageRange


  • public class PageRange
    extends Object
    A range of pages
    Author:
    Michel Kraemer
    • Constructor Detail

      • PageRange

        public PageRange​(String literal,
                         String pageFirst,
                         String pageLast,
                         Integer numberOfPages,
                         boolean multiplePages)
        Constructs a range of pages
        Parameters:
        literal - the string from which this range has been created
        pageFirst - the first page in the range (can be null)
        pageLast - the last page in the range (can be null)
        numberOfPages - the number of pages in this range (can be null)
        multiplePages - true if this object represents multiple pages (may be true even if the actual numberOfPages could not be determined)
    • Method Detail

      • getLiteral

        public String getLiteral()
        Returns:
        the string from which this range has been created
      • getPageFirst

        public String getPageFirst()
        Returns:
        the first page in the range (can be null)
      • getPageLast

        public String getPageLast()
        Returns:
        the last page in the range (can be null)
      • getNumberOfPages

        public Integer getNumberOfPages()
        Returns:
        the number of pages in this range (can be null)
      • isMultiplePages

        public boolean isMultiplePages()
        Returns:
        true if this object represents multiple pages (may be true even if the actual number of pages could not be determined, i.e. if getNumberOfPages() returns null)