public class PaginatedList<E> extends Object
| Constructor and Description |
|---|
PaginatedList()
Creates an empty list.
|
PaginatedList(E item)
Constructs a paginated list with zero or one item.
|
PaginatedList(List<E> items)
Creates a list with the items specified.
|
PaginatedList(List<E> items,
long totalCount,
long itemStart,
long itemsPerPage)
Creates a list with the items specified.
|
PaginatedList(List<E> items,
long totalCount,
Pagination pagination)
Creates a list with the items specified.
|
| Modifier and Type | Method and Description |
|---|---|
List<E> |
getItems()
Gets the items as an unmodifiable list.
|
long |
getItemsPerPage() |
long |
getItemStart() |
long |
getPage() |
long |
getPages() |
long |
getTotalCount() |
boolean |
isFirstPage() |
boolean |
isLastPage() |
public PaginatedList()
public PaginatedList(List<E> items)
items represent the
entire list.public PaginatedList(List<E> items, long totalCount, Pagination pagination)
public PaginatedList(List<E> items, long totalCount, long itemStart, long itemsPerPage)
public PaginatedList(E item)
item - The item. If null, it is not added.public List<E> getItems()
public long getTotalCount()
public long getItemStart()
public long getItemsPerPage()
public boolean isFirstPage()
public boolean isLastPage()
public long getPage()
public long getPages()
Copyright © 2016 EVRYTHNG Ltd London / Zurich. All rights reserved.