@Test public void isRangePartAfterInRangeTrueTest() { PageRange.PageRangePartAfter pageRangePartAfter = new PageRange.PageRangePartAfter(10); Assert.assertTrue(pageRangePartAfter.isPageInRange(11)); }
public boolean isPageInRange(int pageNumber) { for (IPageRangePart sequence : sequences) { if (sequence.isPageInRange(pageNumber)) { return true; } } return false; }
PageRange { public boolean isPageInRange(int pageNumber) { for (IPageRangePart sequence : sequences) { if (sequence.isPageInRange(pageNumber)) { return true; } } return false; } }
PageRange { public boolean isPageInRange(int pageNumber) { for (IPageRangePart sequence : sequences) { if (sequence.isPageInRange(pageNumber)) { return true; } } return false; } PageRange();  PageRange(String pageRange); }
PageRange { public boolean isPageInRange(int pageNumber) { for (IPageRangePart sequence : sequences) { if (sequence.isPageInRange(pageNumber)) { return true; } } return false; } PageRange();  PageRange(String pageRange); PageRange addPageRangePart(IPageRangePart part); PageRange addPageSequence(int startPageNumber, int endPageNumber); PageRange addSinglePage(int pageNumber); List<Integer> getQualifyingPageNums(int nbPages); boolean isPageInRange(int pageNumber); @Override boolean equals(Object obj); @Override int hashCode(); }
PageRange { public boolean isPageInRange(int pageNumber) { for (IPageRangePart sequence : sequences) { if (sequence.isPageInRange(pageNumber)) { return true; } } return false; } PageRange();  PageRange(String pageRange); PageRange addPageRangePart(IPageRangePart part); PageRange addPageSequence(int startPageNumber, int endPageNumber); PageRange addSinglePage(int pageNumber); List<Integer> getQualifyingPageNums(int nbPages); boolean isPageInRange(int pageNumber); @Override boolean equals(Object obj); @Override int hashCode();  }