@Test void getNextStart() { EntityPager pager = new EntityPager(10, 15, null, null); assertEquals(valueOf(25), pager.getNextStart()); pager = new EntityPager(0, 10, 25L, null); assertEquals(valueOf(10), pager.getNextStart()); pager = new EntityPager(10, 10, 25L, null); assertEquals(valueOf(20), pager.getNextStart()); pager = new EntityPager(0, 25, 25L, null); assertNull(pager.getNextStart()); }
public Integer getNextStart() { if (total == null) return this.start + this.num; if (this.start + this.num > this.total - 1) return null; else return this.start + this.num; }
EntityPager { public Integer getNextStart() { if (total == null) return this.start + this.num; if (this.start + this.num > this.total - 1) return null; else return this.start + this.num; } }
EntityPager { public Integer getNextStart() { if (total == null) return this.start + this.num; if (this.start + this.num > this.total - 1) return null; else return this.start + this.num; } EntityPager(int start, int num, Long total, Iterable<Entity> iterable); }
EntityPager { public Integer getNextStart() { if (total == null) return this.start + this.num; if (this.start + this.num > this.total - 1) return null; else return this.start + this.num; } EntityPager(int start, int num, Long total, Iterable<Entity> iterable); int getStart(); int getNum(); Long getTotal(); Integer getNextStart(); Integer getPrevStart(); Iterable<Entity> getIterable(); }
EntityPager { public Integer getNextStart() { if (total == null) return this.start + this.num; if (this.start + this.num > this.total - 1) return null; else return this.start + this.num; } EntityPager(int start, int num, Long total, Iterable<Entity> iterable); int getStart(); int getNum(); Long getTotal(); Integer getNextStart(); Integer getPrevStart(); Iterable<Entity> getIterable();  }