Class BitbucketCloudPage<T>
- java.lang.Object
-
- com.cloudbees.jenkins.plugins.bitbucket.client.BitbucketPage<T>
-
- com.cloudbees.jenkins.plugins.bitbucket.client.BitbucketCloudPage<T>
-
public class BitbucketCloudPage<T> extends BitbucketPage<T>
Bitbucket paginated resource
-
-
Constructor Summary
Constructors Constructor Description BitbucketCloudPage(int pageLength, int page, int size, String next, List<T> values)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getNext()
URL to the next pageint
getPage()
Page numberint
getPageLength()
Number of pagesint
getSize()
Page sizeList<T>
getValues()
List of values in this pageboolean
isLastPage()
Boolean to tell if this is last page
-
-
-
Method Detail
-
getSize
public int getSize()
Description copied from class:BitbucketPage
Page size- Specified by:
getSize
in classBitbucketPage<T>
- Returns:
- page size
-
getValues
public List<T> getValues()
Description copied from class:BitbucketPage
List of values in this page- Specified by:
getValues
in classBitbucketPage<T>
- Returns:
- list of values
-
getNext
public String 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
-
-