returns an optional describing reference to the previous page , or the empty optional when this page is the last one . concode_field_sep long skipItems concode_elem_sep int pageSize concode_elem_sep long totalCount concode_elem_sep List<ITEM_T> items concode_elem_sep long itemsBefore concode_field_sep boolean hasNextPage concode_elem_sep PageRef getLastPageRef concode_elem_sep int getItemsCount concode_elem_sep boolean isEmpty concode_elem_sep long getTotalItemsCount concode_elem_sep COL_T fill concode_elem_sep long getNumber concode_elem_sep List<ITEM_T> getItems concode_elem_sep List<R> getItems concode_elem_sep int getSize concode_elem_sep int getPageSize concode_elem_sep int hashCode concode_elem_sep boolean equals concode_elem_sep boolean hasPreviousPage concode_elem_sep Optional<PageRef> getNextPageRef concode_elem_sep PageRef getFirstPageRef concode_elem_sep long getItemsBefore
Optional < PageRef > function ( ) { if ( ! hasPreviousPage ( ) ) { return Optional . empty ( ) ; } final long loc0 = itemsBefore <= pageSize ? 0 : itemsBefore - pageSize ; return Optional . of ( new PageRef ( loc0 , pageSize ) ) ; }