Package com.blazebit.persistence
Interface KeysetPage
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
DefaultKeysetPage
public interface KeysetPage extends Serializable
An interface that represents the key set of a
PagedList
.
Instances of this interface can be used for key set pagination.- Since:
- 1.0.0
- Author:
- Christian Beikov
-
Method Summary
Modifier and Type Method Description int
getFirstResult()
Returns the position of the first result, numbered from 0.Keyset
getHighest()
Returns the key set for the highest entry of the correspondingPagedList
.List<Keyset>
getKeysets()
Returns the key set list of the correspondingPagedList
.Keyset
getLowest()
Returns the key set for the lowest entry of the correspondingPagedList
.int
getMaxResults()
Returns the maximum number of results.
-
Method Details
-
getFirstResult
int getFirstResult()Returns the position of the first result, numbered from 0. This is the position of the first element of this key set.- Returns:
- The position of the first result
-
getMaxResults
int getMaxResults()Returns the maximum number of results. This is the maximum number of results of this key set.- Returns:
- The maximum number of results
-
getLowest
Keyset getLowest()Returns the key set for the lowest entry of the correspondingPagedList
.- Returns:
- The key set for the lowest entry
-
getHighest
Keyset getHighest()Returns the key set for the highest entry of the correspondingPagedList
.- Returns:
- The key set for the highest entry
-
getKeysets
Returns the key set list of the correspondingPagedList
.- Returns:
- The key set list
- Since:
- 1.4.0
-