@Test void getPrevStart() { EntityPager pager = new EntityPager(10, 15, null, null); assertEquals(valueOf(0), pager.getPrevStart()); pager = new EntityPager(0, 15, 30L, null); assertNull(pager.getPrevStart()); pager = new EntityPager(15, 15, 30L, null); assertEquals(valueOf(0), pager.getPrevStart()); pager = new EntityPager(30, 15, 30L, null); assertEquals(valueOf(15), pager.getPrevStart()); }
public Integer getPrevStart() { if (this.start == 0) return null; else return this.start - this.num >= 0 ? this.start - this.num : 0; }
EntityPager { public Integer getPrevStart() { if (this.start == 0) return null; else return this.start - this.num >= 0 ? this.start - this.num : 0; } }
EntityPager { public Integer getPrevStart() { if (this.start == 0) return null; else return this.start - this.num >= 0 ? this.start - this.num : 0; } EntityPager(int start, int num, Long total, Iterable<Entity> iterable); }
EntityPager { public Integer getPrevStart() { if (this.start == 0) return null; else return this.start - this.num >= 0 ? this.start - this.num : 0; } 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 getPrevStart() { if (this.start == 0) return null; else return this.start - this.num >= 0 ? this.start - this.num : 0; } EntityPager(int start, int num, Long total, Iterable<Entity> iterable); int getStart(); int getNum(); Long getTotal(); Integer getNextStart(); Integer getPrevStart(); Iterable<Entity> getIterable();  }