DATACMNS-1475 - Fixed Javadoc of Slice.nextPageable() and ….previousPageable().
Documented Slice.nextPageable() and ….previousPageable() to return Pageable.unpaged() instead of null. Follow-up ticket: DATACMNS-1476.
This commit is contained in:
@@ -111,18 +111,17 @@ public interface Slice<T> extends Streamable<T> {
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the {@link Pageable} to request the next {@link Slice}. Can be {@literal null} in case the current
|
||||
* {@link Slice} is already the last one. Clients should check {@link #hasNext()} before calling this method to make
|
||||
* sure they receive a non-{@literal null} value.
|
||||
* Returns the {@link Pageable} to request the next {@link Slice}. Can be {@link Pageable#unpaged()} in case the
|
||||
* current {@link Slice} is already the last one. Clients should check {@link #hasNext()} before calling this method.
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
Pageable nextPageable();
|
||||
|
||||
/**
|
||||
* Returns the {@link Pageable} to request the previous {@link Slice}. Can be {@literal null} in case the current
|
||||
* {@link Slice} is already the first one. Clients should check {@link #hasPrevious()} before calling this method make
|
||||
* sure receive a non-{@literal null} value.
|
||||
* Returns the {@link Pageable} to request the previous {@link Slice}. Can be {@link Pageable#unpaged()} in case the
|
||||
* current {@link Slice} is already the first one. Clients should check {@link #hasPrevious()} before calling this
|
||||
* method.
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user