Class ScrollSubrange
java.lang.Object
org.springframework.graphql.data.pagination.Subrange<org.springframework.data.domain.ScrollPosition>
org.springframework.graphql.data.query.ScrollSubrange
Subrange implementation for a ScrollPosition cursor.- Since:
- 1.2.0
- Author:
- Rossen Stoyanchev, Oliver Drotbohm
- 
Method SummaryModifier and TypeMethodDescriptionstatic ScrollSubrangeCreate aScrollSubrangefrom the given inputs.
- 
Method Details- 
createpublic static ScrollSubrange create(@Nullable org.springframework.data.domain.ScrollPosition position, @Nullable Integer count, boolean forward) Create aScrollSubrangefrom the given inputs.Offset scrolling is always forward and exclusive of the referenced item. Therefore, for backward pagination, the offset is advanced back by the count + 1, and the direction is switched to forward. - Parameters:
- position- the reference position, or- nullif not specified
- count- how many to return, or- nullif not specified
- forward- whether scroll forward (true) or backward (false)
- Returns:
- the created instance
- Since:
- 1.2.4
 
 
-