Class BitbucketCloudPage<T>
java.lang.Object
com.cloudbees.jenkins.plugins.bitbucket.client.BitbucketPage<T>
com.cloudbees.jenkins.plugins.bitbucket.client.BitbucketCloudPage<T>
Bitbucket paginated resource
-
Constructor Summary
ConstructorDescriptionBitbucketCloudPage
(int pageLength, int page, int size, String next, List<T> values) -
Method Summary
-
Constructor Details
-
BitbucketCloudPage
-
-
Method Details
-
getSize
public int getSize()Description copied from class:BitbucketPage
Page size- Specified by:
getSize
in classBitbucketPage<T>
- Returns:
- page size
-
getValues
Description copied from class:BitbucketPage
List of values in this page- Specified by:
getValues
in classBitbucketPage<T>
- Returns:
- list of values
-
getNext
Description copied from class:BitbucketPage
URL to the next page- Specified by:
getNext
in classBitbucketPage<T>
- Returns:
- next page url
-
isLastPage
public boolean isLastPage()Description copied from class:BitbucketPage
Boolean to tell if this is last page- Specified by:
isLastPage
in classBitbucketPage<T>
- Returns:
- If true then last page, otherwise
-
getPageLength
public int getPageLength()Description copied from class:BitbucketPage
Number of pages- Specified by:
getPageLength
in classBitbucketPage<T>
- Returns:
- number of pages
-
getPage
public int getPage()Description copied from class:BitbucketPage
Page number- Specified by:
getPage
in classBitbucketPage<T>
- Returns:
- page number
-