@Test public void rangePartAndEqualsNullTest() { PageRange.IPageRangePart odd = PageRange.PageRangePartOddEven.ODD; PageRange.IPageRangePart seq = new PageRange.PageRangePartSequence(2, 14); PageRange.PageRangePartAnd pageRangePartAnd = new PageRange.PageRangePartAnd(odd, seq); Assert.assertFalse(pageRangePartAnd.equals(null)); }
@Override public boolean equals(Object obj) { if (!(obj instanceof PageRange)) { return false; } PageRange other = (PageRange) obj; return sequences.equals(other.sequences); }
PageRange { @Override public boolean equals(Object obj) { if (!(obj instanceof PageRange)) { return false; } PageRange other = (PageRange) obj; return sequences.equals(other.sequences); } }
PageRange { @Override public boolean equals(Object obj) { if (!(obj instanceof PageRange)) { return false; } PageRange other = (PageRange) obj; return sequences.equals(other.sequences); } PageRange();  PageRange(String pageRange); }
PageRange { @Override public boolean equals(Object obj) { if (!(obj instanceof PageRange)) { return false; } PageRange other = (PageRange) obj; return sequences.equals(other.sequences); } 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 { @Override public boolean equals(Object obj) { if (!(obj instanceof PageRange)) { return false; } PageRange other = (PageRange) obj; return sequences.equals(other.sequences); } 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();  }