Class PageRange.PageRangePartSequence

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int end  
      private int start  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)
      java.util.List<java.lang.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.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • start

        private final int start
      • end

        private final int end
    • Constructor Detail

      • PageRangePartSequence

        public PageRangePartSequence​(int start,
                                     int end)
        Creates new PageRange.PageRangePartSequence instance.
        Parameters:
        start - the number of the first page in a range part
        end - the number of the last page in a range part
    • Method Detail

      • getAllPagesInRange

        public java.util.List<java.lang.Integer> getAllPagesInRange​(int nbPages)
        Description copied from interface: PageRange.IPageRangePart
        Gets the list of pages that have been added to the range part so far.
        Specified by:
        getAllPagesInRange in interface PageRange.IPageRangePart
        Parameters:
        nbPages - number of pages of the document to get the pages, to list only the pages eligible for this document
        Returns:
        the list containing page numbers added to the range part matching this document
      • isPageInRange

        public boolean isPageInRange​(int pageNumber)
        Description copied from interface: PageRange.IPageRangePart
        Checks if a given page is present in the range part built so far.
        Specified by:
        isPageInRange in interface PageRange.IPageRangePart
        Parameters:
        pageNumber - the page number to check
        Returns:
        true if the page is present in this range, false otherwise
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object