Package com.abubusoft.kripton.android
Interface PagedResult
-
- All Superinterfaces:
PageNavigator,PageRequest
- All Known Subinterfaces:
Paginator<E>
- All Known Implementing Classes:
PagedLiveData
public interface PagedResult extends PageNavigator
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetTotalElements()Returns the total amount of elements.intgetTotalPages()Returns the number of total pages.booleanhasNext()booleanhasPrevious()booleanisFirst()booleanisLast()-
Methods inherited from interface com.abubusoft.kripton.android.PageNavigator
firstPage, lastPage, nextPage, previousPage, setOffset, setPage, setPageSize
-
Methods inherited from interface com.abubusoft.kripton.android.PageRequest
getOffset, getPageNumber, getPageSize
-
-
-
-
Method Detail
-
getTotalElements
int getTotalElements()
Returns the total amount of elements.- Returns:
- the total amount of elements
-
getTotalPages
int getTotalPages()
Returns the number of total pages.- Returns:
- the number of total pages
-
isLast
boolean isLast()
-
isFirst
boolean isFirst()
-
hasNext
boolean hasNext()
-
hasPrevious
boolean hasPrevious()
-
-