@Test public void test_paginated_view_incomplete_page() { List<Integer> integers = Lists.newArrayList(0, 1, 2); Result<Integer> result = new Result<>(integers, 0, 3); underTest = new PaginatedView<>(result, new Page(0, 5)); Assertions.assertThat(underTest).isNotNull(); Assertions.assertThat(underTest.getPageIndex()).isEqualTo(0); Assertions.assertThat(underTest.getView()).hasSize(3); }
public long getPageIndex() { return pageIndex; }
PaginatedView extends AbstractView<I> { public long getPageIndex() { return pageIndex; } }
PaginatedView extends AbstractView<I> { public long getPageIndex() { return pageIndex; } PaginatedView(List<I> items, long pageSize, long pageIndex);  PaginatedView(Result<I> result, long pageSize, long pageIndex);  PaginatedView(Result<I> result, Page page);  PaginatedView(List<I> subList, long subListStart, long realListSize, long pageSize, long pageIndex); }
PaginatedView extends AbstractView<I> { public long getPageIndex() { return pageIndex; } PaginatedView(List<I> items, long pageSize, long pageIndex);  PaginatedView(Result<I> result, long pageSize, long pageIndex);  PaginatedView(Result<I> result, Page page);  PaginatedView(List<I> subList, long subListStart, long realListSize, long pageSize, long pageIndex); boolean hasNext(); Page next(); boolean hasPrev(); Page prev(); long getPageSize(); long getPageIndex(); long getPagesCount(); }
PaginatedView extends AbstractView<I> { public long getPageIndex() { return pageIndex; } PaginatedView(List<I> items, long pageSize, long pageIndex);  PaginatedView(Result<I> result, long pageSize, long pageIndex);  PaginatedView(Result<I> result, Page page);  PaginatedView(List<I> subList, long subListStart, long realListSize, long pageSize, long pageIndex); boolean hasNext(); Page next(); boolean hasPrev(); Page prev(); long getPageSize(); long getPageIndex(); long getPagesCount();  }