public class PageResponse<T> extends Object implements org.springframework.data.domain.Page<T>
Modifier and Type | Class and Description |
---|---|
static interface |
PageResponse.View |
Modifier and Type | Field and Description |
---|---|
protected List<T> |
content |
protected int |
number |
protected int |
numberOfElements |
protected int |
size |
protected long |
totalElements |
protected int |
totalPages |
Modifier | Constructor and Description |
---|---|
protected |
PageResponse() |
Modifier and Type | Method and Description |
---|---|
List<T> |
getContent() |
int |
getNumber() |
int |
getNumberOfElements() |
int |
getSize() |
org.springframework.data.domain.Sort |
getSort() |
long |
getTotalElements() |
int |
getTotalPages() |
boolean |
hasContent() |
boolean |
hasNext() |
boolean |
hasPrevious() |
boolean |
isFirst() |
boolean |
isLast() |
Iterator<T> |
iterator() |
org.springframework.data.domain.Pageable |
nextPageable() |
org.springframework.data.domain.Pageable |
previousPageable() |
void |
setContent(List<T> content) |
void |
setNumber(int number) |
void |
setNumberOfElements(int numberOfElements) |
void |
setSize(int size) |
void |
setTotalElements(long totalElements) |
void |
setTotalPages(int totalPages) |
protected int number
protected int size
protected int totalPages
protected int numberOfElements
protected long totalElements
public List<T> getContent()
getContent
in interface org.springframework.data.domain.Slice<T>
public int getNumber()
getNumber
in interface org.springframework.data.domain.Slice<T>
public void setNumber(int number)
public int getNumberOfElements()
getNumberOfElements
in interface org.springframework.data.domain.Slice<T>
public void setNumberOfElements(int numberOfElements)
public int getSize()
getSize
in interface org.springframework.data.domain.Slice<T>
public void setSize(int size)
public long getTotalElements()
getTotalElements
in interface org.springframework.data.domain.Page<T>
public void setTotalElements(long totalElements)
public int getTotalPages()
getTotalPages
in interface org.springframework.data.domain.Page<T>
public void setTotalPages(int totalPages)
public org.springframework.data.domain.Pageable nextPageable()
nextPageable
in interface org.springframework.data.domain.Slice<T>
public org.springframework.data.domain.Pageable previousPageable()
previousPageable
in interface org.springframework.data.domain.Slice<T>
public boolean hasContent()
hasContent
in interface org.springframework.data.domain.Slice<T>
public org.springframework.data.domain.Sort getSort()
getSort
in interface org.springframework.data.domain.Slice<T>
public boolean hasPrevious()
hasPrevious
in interface org.springframework.data.domain.Slice<T>
public boolean hasNext()
hasNext
in interface org.springframework.data.domain.Slice<T>
public boolean isFirst()
isFirst
in interface org.springframework.data.domain.Slice<T>
public boolean isLast()
isLast
in interface org.springframework.data.domain.Slice<T>
Copyright © 2009–2014. All rights reserved.