DATACMNS-1581 - Polishing.

Javadoc on (Q)PageRequest.
This commit is contained in:
Oliver Drotbohm
2019-09-25 13:29:52 +02:00
parent 221ad9353e
commit 725d88811c
2 changed files with 8 additions and 8 deletions

View File

@@ -50,8 +50,8 @@ public class PageRequest extends AbstractPageRequest {
/**
* Creates a new unsorted {@link PageRequest}.
*
* @param page zero-based page index.
* @param size the size of the page to be returned.
* @param page zero-based page index, must not be negative.
* @param size the size of the page to be returned, must be greater than 0.
* @since 2.0
*/
public static PageRequest of(int page, int size) {
@@ -73,8 +73,8 @@ public class PageRequest extends AbstractPageRequest {
/**
* Creates a new {@link PageRequest} with sort direction and properties applied.
*
* @param page zero-based page index.
* @param size the size of the page to be returned.
* @param page zero-based page index, must not be negative.
* @param size the size of the page to be returned, must be greater than 0.
* @param direction must not be {@literal null}.
* @param properties must not be {@literal null}.
* @since 2.0

View File

@@ -37,8 +37,8 @@ public class QPageRequest extends AbstractPageRequest {
* Creates a new {@link QPageRequest}. Pages are zero indexed, thus providing 0 for {@code page} will return the first
* page.
*
* @param page
* @param size
* @param page must not be negative.
* @param size must be greater or equal to 0.
*/
public QPageRequest(int page, int size) {
this(page, size, QSort.unsorted());
@@ -47,8 +47,8 @@ public class QPageRequest extends AbstractPageRequest {
/**
* Creates a new {@link QPageRequest} with the given {@link OrderSpecifier}s applied.
*
* @param page
* @param size
* @param page must not be negative.
* @param size must be greater or equal to 0.
* @param orderSpecifiers must not be {@literal null} or empty;
*/
public QPageRequest(int page, int size, OrderSpecifier<?>... orderSpecifiers) {