Package com.collibra.dgc.core.api.dto
Class CursorPagedResponse<T>
Object
PagedResponse<T>
CursorPagedResponse<T>
- All Implemented Interfaces:
Serializable
Response containing paged data.
- See Also:
-
Nested Class Summary
-
Field Summary
Fields inherited from class PagedResponse
limit, offset, total
-
Constructor Summary
ConstructorDescriptionCursorPagedResponse
(String nextCursor, List<T> results, long total, long offset, long limit) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
static <T> CursorPagedResponse.Builder
<T> boolean
Cursor value to be passed in next call to retrieve next page of results.long
Deprecated, for removal: This API element is subject to removal in a future version.use cursor paginationlong
getTotal()
Deprecated, for removal: This API element is subject to removal in a future version.use cursor paginationint
hashCode()
Methods inherited from class PagedResponse
builder, getLimit, getResults, setLimit, setOffset, setResults, setTotal, toString
-
Constructor Details
-
CursorPagedResponse
-
CursorPagedResponse
public CursorPagedResponse()
-
-
Method Details
-
getOffset
Deprecated, for removal: This API element is subject to removal in a future version.use cursor paginationDescription copied from class:PagedResponse
Returns the offset for the results.- Overrides:
getOffset
in classPagedResponse<T>
- Returns:
- the offset for the results
-
getTotal
Deprecated, for removal: This API element is subject to removal in a future version.use cursor paginationDescription copied from class:PagedResponse
Returns the total number of results.- Overrides:
getTotal
in classPagedResponse<T>
- Returns:
- the total number of results
-
cursorBuilder
-
getNextCursor
Cursor value to be passed in next call to retrieve next page of results. Not returned for last page or when offset pagination is used. -
equals
- Overrides:
equals
in classPagedResponse<T>
-
canEqual
- Overrides:
canEqual
in classPagedResponse<T>
-
hashCode
public int hashCode()- Overrides:
hashCode
in classPagedResponse<T>
-