|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.synyx.hades.domain.PageImpl<T>
T - the type of which the page consists.public class PageImpl<T>
Basic Page implementation.
| Constructor Summary | |
|---|---|
PageImpl(java.util.List<T> content)
Creates a new PageImpl with the given content. |
|
PageImpl(java.util.List<T> content,
Pageable pageable,
long total)
Constructor of PageImpl. |
|
| Method Summary | |
|---|---|
java.util.List<T> |
asList()
Returns the page content as List. |
boolean |
equals(java.lang.Object obj)
|
int |
getNumber()
Returns the number of the current page. |
int |
getNumberOfElements()
Returns the number of elements currently on this page. |
int |
getSize()
Returns the size of the page. |
Sort |
getSort()
Returns the sorting parameters for the page. |
long |
getTotalElements()
Returns the total amount of elements. |
int |
getTotalPages()
Returns the number of total pages. |
int |
hashCode()
|
boolean |
hasNextPage()
Returns if there is a next page. |
boolean |
hasPreviousPage()
Returns if there is a previous page. |
java.util.Iterator<T> |
iterator()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PageImpl(java.util.List<T> content,
Pageable pageable,
long total)
PageImpl.
content - the content of this pagepageable - the paging informationtotal - the total amount of items availablepublic PageImpl(java.util.List<T> content)
PageImpl with the given content. This will result
in the created Page being identical to the entire List.
content - | Method Detail |
|---|
public int getNumber()
PagePage#getTotalPages().
getNumber in interface Page<T>public int getSize()
Page
getSize in interface Page<T>public int getTotalPages()
Page
getTotalPages in interface Page<T>public int getNumberOfElements()
Page
getNumberOfElements in interface Page<T>public long getTotalElements()
Page
getTotalElements in interface Page<T>public boolean hasPreviousPage()
Page
hasPreviousPage in interface Page<T>public boolean hasNextPage()
Page
hasNextPage in interface Page<T>public java.util.Iterator<T> iterator()
iterator in interface java.lang.Iterable<T>iterator in interface Page<T>public java.util.List<T> asList()
PageList.
asList in interface Page<T>public Sort getSort()
Page
getSort in interface Page<T>public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||