Class EncodingCursorStrategy<T>
java.lang.Object
org.springframework.graphql.data.pagination.EncodingCursorStrategy<T>
- Type Parameters:
- T- the type of position
- All Implemented Interfaces:
- CursorStrategy<T>
Decorator for a 
CursorStrategy that applies a CursorEncoder
 to the cursor String to make it opaque for external use.
 To create an instance, use
 CursorStrategy.withEncoder(CursorStrategy, CursorEncoder).
- Since:
- 1.2.0
- Author:
- Rossen Stoyanchev
- 
Method SummaryModifier and TypeMethodDescriptionfromCursor(String cursor) Parse the given String cursor into a position Object.Return the decoratedCursorStrategy.Return the configuredCursorEncoder.booleanWhether the strategy supports the given type of position Object.Format the given position Object as a String cursor.
- 
Method Details- 
getDelegateReturn the decoratedCursorStrategy.
- 
getEncoderReturn the configuredCursorEncoder.
- 
supportsDescription copied from interface:CursorStrategyWhether the strategy supports the given type of position Object.- Specified by:
- supportsin interface- CursorStrategy<T>
- Parameters:
- targetType- the type of position to be checked
 
- 
toCursorDescription copied from interface:CursorStrategyFormat the given position Object as a String cursor.- Specified by:
- toCursorin interface- CursorStrategy<T>
- Parameters:
- position- the position to serialize
- Returns:
- the created String cursor
 
- 
fromCursorDescription copied from interface:CursorStrategyParse the given String cursor into a position Object.- Specified by:
- fromCursorin interface- CursorStrategy<T>
- Parameters:
- cursor- the cursor to parse
- Returns:
- the position Object
 
 
-