Class PagingCursorbased<T>
java.lang.Object
com.wrapper.spotify.model_objects.AbstractModelObject
com.wrapper.spotify.model_objects.specification.PagingCursorbased<T>
- Type Parameters:
T- The type of the objects contained in a paging object.
- All Implemented Interfaces:
IModelObject
public class PagingCursorbased<T> extends AbstractModelObject
Retrieve information about
cursor-based Paging objects by building instances from this class.
This cursor-based paging object is a container for a set of objects.
This cursor-based paging object is a container for a set of objects.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPagingCursorbased.Builder<T>Builder class for buildingPagingCursorbasedinstances.static classPagingCursorbased.JsonUtil<X>JsonUtil class for buildingPagingCursorbasedinstances.Nested classes/interfaces inherited from interface com.wrapper.spotify.model_objects.IModelObject
IModelObject.IJsonUtil<T> -
Method Summary
Modifier and Type Method Description PagingCursorbased.Builder<T>builder()Create a builder for building an instance of a model object.Cursor[]getCursors()Get the cursors used to find the next set of items.StringgetHref()Get a link to the Web API endpoint returning the full result of the request.T[]getItems()Get the items contained in the paging object.IntegergetLimit()Get the maximum number of items in the response (as set in the query or by default).StringgetNext()Get the URL to the next page of items.IntegergetTotal()Get the total number of items available to return.
-
Method Details
-
getHref
Get a link to the Web API endpoint returning the full result of the request.- Returns:
- A link to the Web API endpoint returning the full result of the request.
-
getItems
Get the items contained in the paging object.- Returns:
- The items contained in the paging object.
-
getLimit
Get the maximum number of items in the response (as set in the query or by default).- Returns:
- The maximum number of items in the response (as set in the query or by default).
-
getNext
Get the URL to the next page of items. (nullif none)- Returns:
- URL to the next page of items. (
nullif none)
-
getCursors
Get the cursors used to find the next set of items.- Returns:
- The cursors used to find the next set of items.
-
getTotal
Get the total number of items available to return.- Returns:
- The total number of items available to return.
-
builder
Description copied from interface:IModelObjectCreate a builder for building an instance of a model object.
The type of the builder and its methods depend on its corresponding implementation.- Returns:
- A builder object.
-