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 |
hasNextPage() |
boolean |
hasPreviousPage() |
boolean |
isFirstPage() |
boolean |
isLastPage() |
Iterator |
iterator() |
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.Page<T>
public int getNumber()
getNumber
in interface org.springframework.data.domain.Page<T>
public void setNumber(int number)
public int getNumberOfElements()
getNumberOfElements
in interface org.springframework.data.domain.Page<T>
public void setNumberOfElements(int numberOfElements)
public int getSize()
getSize
in interface org.springframework.data.domain.Page<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 boolean hasPreviousPage()
hasPreviousPage
in interface org.springframework.data.domain.Page<T>
public boolean isFirstPage()
isFirstPage
in interface org.springframework.data.domain.Page<T>
public boolean hasNextPage()
hasNextPage
in interface org.springframework.data.domain.Page<T>
public boolean isLastPage()
isLastPage
in interface org.springframework.data.domain.Page<T>
public Iterator iterator()
public boolean hasContent()
hasContent
in interface org.springframework.data.domain.Page<T>
public org.springframework.data.domain.Sort getSort()
getSort
in interface org.springframework.data.domain.Page<T>
Copyright © 2009-2012. All Rights Reserved.