@Test public void testToSelectOptions3() throws Exception { SelectOptions options = Pageables.toSelectOptions(pageRequest(2, 5)); assertThat(SelectOptionsAccessor.getOffset(options), is(10L)); assertThat(SelectOptionsAccessor.getLimit(options), is(5L)); }
public static SelectOptions toSelectOptions(Pageable pageable) { final int offset = pageable.getPageNumber() * pageable.getPageSize(); final int limit = pageable.getPageSize(); return SelectOptions.get().offset(offset).limit(limit); }
Pageables { public static SelectOptions toSelectOptions(Pageable pageable) { final int offset = pageable.getPageNumber() * pageable.getPageSize(); final int limit = pageable.getPageSize(); return SelectOptions.get().offset(offset).limit(limit); } }
Pageables { public static SelectOptions toSelectOptions(Pageable pageable) { final int offset = pageable.getPageNumber() * pageable.getPageSize(); final int limit = pageable.getPageSize(); return SelectOptions.get().offset(offset).limit(limit); }  }
Pageables { public static SelectOptions toSelectOptions(Pageable pageable) { final int offset = pageable.getPageNumber() * pageable.getPageSize(); final int limit = pageable.getPageSize(); return SelectOptions.get().offset(offset).limit(limit); }  static SelectOptions toSelectOptions(Pageable pageable); }
Pageables { public static SelectOptions toSelectOptions(Pageable pageable) { final int offset = pageable.getPageNumber() * pageable.getPageSize(); final int limit = pageable.getPageSize(); return SelectOptions.get().offset(offset).limit(limit); }  static SelectOptions toSelectOptions(Pageable pageable);  }