Class PageRange


  • public class PageRange
    extends java.lang.Object
    A range of pages
    Author:
    Michel Kraemer
    • Constructor Summary

      Constructors 
      Constructor Description
      PageRange​(java.lang.String literal, java.lang.String pageFirst, java.lang.String pageLast, java.lang.Integer numberOfPages, boolean multiplePages)
      Constructs a range of pages
    • Constructor Detail

      • PageRange

        public PageRange​(java.lang.String literal,
                         java.lang.String pageFirst,
                         java.lang.String pageLast,
                         java.lang.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 java.lang.String getLiteral()
        Returns:
        the string from which this range has been created
      • getPageFirst

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

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

        public java.lang.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)