Class ScrollSubrangeMethodArgumentResolver
java.lang.Object
org.springframework.graphql.data.method.annotation.support.SubrangeMethodArgumentResolver<org.springframework.data.domain.ScrollPosition>
org.springframework.graphql.data.method.annotation.support.ScrollSubrangeMethodArgumentResolver
- All Implemented Interfaces:
HandlerMethodArgumentResolver
public class ScrollSubrangeMethodArgumentResolver
extends SubrangeMethodArgumentResolver<org.springframework.data.domain.ScrollPosition>
- Since:
- 1.2.0
- Author:
- Rossen Stoyanchev
-
Constructor Summary
ConstructorDescriptionScrollSubrangeMethodArgumentResolver
(CursorStrategy<org.springframework.data.domain.ScrollPosition> strategy) -
Method Summary
Modifier and TypeMethodDescriptionprotected ScrollSubrange
createSubrange
(org.springframework.data.domain.ScrollPosition pos, Integer count, boolean forward) Allows subclasses to create an extension ofSubrange
.boolean
supportsParameter
(MethodParameter parameter) Whether this resolver supports the givenMethodParameter
.Methods inherited from class org.springframework.graphql.data.method.annotation.support.SubrangeMethodArgumentResolver
resolveArgument
-
Constructor Details
-
ScrollSubrangeMethodArgumentResolver
public ScrollSubrangeMethodArgumentResolver(CursorStrategy<org.springframework.data.domain.ScrollPosition> strategy)
-
-
Method Details
-
supportsParameter
Description copied from interface:HandlerMethodArgumentResolver
Whether this resolver supports the givenMethodParameter
.- Specified by:
supportsParameter
in interfaceHandlerMethodArgumentResolver
- Overrides:
supportsParameter
in classSubrangeMethodArgumentResolver<org.springframework.data.domain.ScrollPosition>
-
createSubrange
protected ScrollSubrange createSubrange(@Nullable org.springframework.data.domain.ScrollPosition pos, @Nullable Integer count, boolean forward) Description copied from class:SubrangeMethodArgumentResolver
Allows subclasses to create an extension ofSubrange
.- Overrides:
createSubrange
in classSubrangeMethodArgumentResolver<org.springframework.data.domain.ScrollPosition>
-