public class Pageable
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
Pageable.PageableBuilder |
| Constructor and Description |
|---|
Pageable(int page,
int size)
Creates a new
Pageable with the give page numner and page size. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
int |
getPage()
Returns the page number.
|
int |
getSize()
Returns the page size.
|
int |
hashCode() |
java.lang.String |
toString() |
public Pageable(int page,
int size)
Pageable with the give page numner and page size.page - the page number, must not be less than 1size - the page size, must not be less than 1public int getPage()
public int getSize()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object